:root {
  --bg: #07090c;
  --panel-1: rgba(26, 29, 36, .94);
  --panel-2: rgba(11, 13, 17, .96);
  --line: #2b3038;
  --line-hi: #4a4233;
  --gold: #e0aa4a;
  --gold-hi: #fff0b8;
  --gold-lo: #8a5a1b;
  --text: #d6d3cc;
  --muted: #8b8f98;
  --radiant: #6fcf4a;
  --radiant-dk: #1d5a14;
  --dire: #e0463b;
  --dire-dk: #6c1512;
  --font-display: 'Forum', 'Times New Roman', serif;
  --font-ui: 'Exo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --slot-0: #3375ff; --slot-1: #66ffbf; --slot-2: #bf00bf; --slot-3: #f3f00b; --slot-4: #ff6b00;
  --slot-5: #fe86c2; --slot-6: #a1b447; --slot-7: #65d9f7; --slot-8: #00a331; --slot-9: #a46900;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(224, 170, 74, .35); }
* { scrollbar-width: thin; scrollbar-color: #3a3f48 transparent; }

/* ---------- фон ---------- */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#bg .glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: .55; }
.glow-radiant { left: -30vmax; top: -25vmax; background: radial-gradient(circle, rgba(60, 150, 60, .55), transparent 65%); }
.glow-dire { right: -30vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(170, 30, 25, .6), transparent 65%); }
#bg::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px);
}
#embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .75) 100%); }

/* ---------- шапка ---------- */
.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(12px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .3));
  border-bottom: 1px solid #1d2026;
}
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lo) 20%, var(--gold) 50%, var(--gold-lo) 80%, transparent);
  opacity: .7;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.emblem { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(200, 48, 43, .45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: .18em; color: var(--gold-hi); text-shadow: 0 0 14px rgba(224, 170, 74, .35); }
.brand-text i { font-style: normal; font-size: 10px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.top-actions { display: flex; align-items: center; gap: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 3px;
  background: rgba(0, 0, 0, .45); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); letter-spacing: .04em;
}
.chip b { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .25em; color: var(--gold-hi); }
button.chip:hover { border-color: var(--gold-lo); color: var(--text); }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 3px;
  background: rgba(0, 0, 0, .45); border: 1px solid var(--line); color: var(--muted);
}
.icon-btn:hover { color: var(--gold-hi); border-color: var(--gold-lo); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- макет ---------- */
#app { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: clamp(14px, 3vw, 30px) clamp(12px, 3vw, 24px) 60px; }

.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel-1), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), 0 14px 40px rgba(0, 0, 0, .55);
}
.panel::before {
  content: ''; position: absolute; left: 14px; right: 14px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lo), var(--gold), var(--gold-lo), transparent);
  opacity: .8;
}
.panel > h2, .panel-title {
  margin: 0 0 14px; font-family: var(--font-display); font-weight: 400;
  font-size: 20px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.panel > h2::after, .panel-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-hi), transparent); }

.gold-text {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  font-family: var(--font-display); font-size: 17px; letter-spacing: .14em; text-transform: uppercase;
  color: #e9dfc6; background: linear-gradient(180deg, #2c3038, #181b20);
  border: 1px solid #555046; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 8px rgba(0, 0, 0, .5);
  transition: filter .15s, transform .08s, border-color .15s, box-shadow .2s;
  user-select: none;
}
.btn:hover:not(:disabled) { filter: brightness(1.18); border-color: var(--gold); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.go {
  color: #f0ffe0; border-color: #8ccf5a;
  background: linear-gradient(180deg, #4a9a35, #1f5f17 55%, #164a10);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 18px rgba(80, 180, 60, .25), 0 2px 8px rgba(0, 0, 0, .5);
}
.btn.danger {
  color: #ffe9e4; border-color: #e0746a;
  background: linear-gradient(180deg, #b83a30, #7a1c16 55%, #5a130f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 18px rgba(200, 50, 40, .25), 0 2px 8px rgba(0, 0, 0, .5);
}
.btn.gold {
  color: #2a1a05; border-color: #ffe08a;
  background: linear-gradient(180deg, #f3cd75, #cf9a3a 55%, #9a6a1e);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.btn.big { min-height: 56px; font-size: 21px; padding: 12px 34px; }
.btn.small { min-height: 34px; padding: 6px 14px; font-size: 14px; letter-spacing: .1em; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.block { width: 100%; }

/* ---------- поля ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: rgba(0, 0, 0, .55); border: 1px solid #353a43; border-radius: 3px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6);
  color: #f1ead8; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #5b606a; }
.input:focus { border-color: var(--gold); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6), 0 0 0 2px rgba(224, 170, 74, .2); }
.input.code { text-align: center; text-transform: uppercase; letter-spacing: .5em; font-family: var(--font-display); font-size: 24px; padding-left: calc(14px + .5em); }
textarea.input { resize: none; min-height: 74px; line-height: 1.4; }

.seg { display: inline-flex; border: 1px solid #3a3f48; border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, .4); }
.seg button {
  min-height: 38px; padding: 6px 16px; background: transparent; border: 0; color: var(--muted);
  font-size: 14px; letter-spacing: .04em; border-right: 1px solid #2a2e35; transition: background .15s, color .15s;
}
.seg button:last-child { border-right: 0; }
.seg button:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, .04); }
.seg button.on { background: linear-gradient(180deg, rgba(224, 170, 74, .28), rgba(224, 170, 74, .1)); color: var(--gold-hi); box-shadow: inset 0 -2px 0 var(--gold); }
.seg button:disabled { cursor: default; }

/* ---------- главная ---------- */
.home { display: grid; justify-items: center; gap: 28px; padding-top: clamp(0px, 4vh, 40px); }
.hero { text-align: center; }
.hero .hero-emblem { width: clamp(110px, 18vw, 150px); filter: drop-shadow(0 0 28px rgba(200, 48, 43, .5)); animation: float 5s ease-in-out infinite; }
.hero h1 {
  margin: 8px 0 4px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(46px, 9vw, 84px); letter-spacing: .2em; padding-left: .2em; line-height: 1;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 52%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(224, 170, 74, .25));
}
.hero p { margin: 0; color: var(--muted); letter-spacing: .12em; font-size: 15px; }
.hero p b { color: var(--dire); font-weight: 600; }
.hero p em { color: var(--radiant); font-style: normal; font-weight: 600; }
.home-card { width: min(100%, 440px); }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.join-row { display: flex; gap: 10px; }
.join-row .input { flex: 1; min-width: 0; }
.linkish { background: none; border: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; padding: 4px; font-size: 14px; }
.linkish:hover { color: var(--gold-hi); }
.rules { width: min(100%, 760px); }
.rules ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.rules li::marker { color: var(--gold); font-family: var(--font-display); }
.rules b { color: var(--gold-hi); font-weight: 600; }

/* ---------- лобби ---------- */
.lobby { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.room-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.room-code { font-family: var(--font-display); font-size: 44px; letter-spacing: .3em; line-height: 1; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prow {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  border: 1px solid #262a31; border-left: 3px solid var(--c, #666); border-radius: 3px;
  animation: slide-in .35s ease both;
}
.prow.off { opacity: .5; }
.prow .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.prow .tag { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 19px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 40%, #000));
  border: 2px solid color-mix(in srgb, var(--c) 60%, #000);
  box-shadow: 0 0 0 1px #000, inset 0 -4px 8px rgba(0, 0, 0, .35);
}
.crown { width: 18px; height: 18px; fill: var(--gold); flex: none; }
.kick { width: 28px; height: 28px; font-size: 18px; line-height: 1; border: 1px solid #3a3f48; border-radius: 3px; background: transparent; color: var(--muted); }
.kick:hover { color: #ff9b92; border-color: #8a3a34; }
.score { font-family: var(--font-display); font-size: 18px; color: var(--gold); min-width: 22px; text-align: right; }
.slots-empty { border: 1px dashed #2a2e35; border-radius: 3px; padding: 9px 12px; color: #4c515b; font-size: 14px; letter-spacing: .1em; }

.setting { display: grid; gap: 8px; margin-bottom: 20px; }
.setting > label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.setting .hint { font-size: 13px; color: #727680; }
.notice {
  margin-bottom: 18px; padding: 10px 14px; border: 1px solid #6a4a1a; border-left: 3px solid var(--gold);
  background: rgba(224, 170, 74, .08); border-radius: 3px; color: #ecd9a8;
}

/* ---------- игра ---------- */
.game { display: grid; grid-template-columns: 300px 1fr; grid-template-areas: 'head head' 'side main'; gap: 18px; align-items: start; }
.g-head { grid-area: head; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 20px; }
.g-side { grid-area: side; display: grid; gap: 18px; min-width: 0; }
.g-main { grid-area: main; display: grid; gap: 18px; min-width: 0; }
.head-title { flex: 1; min-width: 220px; }
.head-title h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: .1em; text-transform: uppercase; }
.head-title p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.circle-pips { display: flex; gap: 6px; align-items: center; }
.pip { width: 12px; height: 12px; transform: rotate(45deg); border: 1px solid var(--gold-lo); background: transparent; }
.pip.done { background: var(--gold); box-shadow: 0 0 8px rgba(224, 170, 74, .6); }
.pip.now { background: rgba(224, 170, 74, .35); animation: pulse 1.4s ease-in-out infinite; }
.timer { width: 190px; }
.timer .t-num { font-family: var(--font-display); font-size: 28px; letter-spacing: .08em; line-height: 1; text-align: right; }
.timer .t-bar { height: 6px; margin-top: 6px; background: #0b0d10; border: 1px solid #2a2e35; border-radius: 3px; overflow: hidden; }
.timer .t-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); transform-origin: left; }
.timer.low .t-num { color: var(--dire); animation: pulse 0.8s ease-in-out infinite; }
.timer.low .t-fill { background: linear-gradient(90deg, #7a1c16, var(--dire)); }

/* карточка предмета */
.item-panel { text-align: center; padding: 16px 16px 18px; }
.role-badge {
  display: inline-block; margin-bottom: 12px; padding: 4px 14px; font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  border-radius: 2px; border: 1px solid;
}
.role-badge.agent { color: #c9f5b0; border-color: #4e8a38; background: rgba(80, 160, 60, .12); }
.role-badge.spy { color: #ffc9c2; border-color: #a8433b; background: rgba(200, 50, 40, .14); }
.item-card {
  position: relative; width: 100%; max-width: 232px; margin: 0 auto; aspect-ratio: 88 / 64;
  border: 2px solid var(--gold-lo); border-radius: 4px; padding: 5px;
  background: linear-gradient(180deg, #2a2316, #0e0c08);
  box-shadow: 0 0 0 1px #000, 0 0 30px rgba(224, 170, 74, .22), inset 0 0 22px rgba(0, 0, 0, .8);
  animation: card-in .8s cubic-bezier(.2, .8, .2, 1) both;
}
.item-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 2px; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 184, .22) 50%, transparent 65%);
  background-size: 250% 100%; animation: shine 4.5s ease-in-out infinite 1s;
}
.item-card img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.item-card.mystery {
  border-color: #7a2a24; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #3a0f0d, #120505 70%);
  box-shadow: 0 0 0 1px #000, 0 0 34px rgba(200, 50, 40, .35), inset 0 0 22px rgba(0, 0, 0, .8);
  animation: card-in .8s cubic-bezier(.2, .8, .2, 1) both, flicker 5s infinite 1s;
}
.item-card.mystery .q { font-family: var(--font-display); font-size: 64px; line-height: 1; color: #d86a5e; text-shadow: 0 0 20px rgba(220, 70, 55, .8); }
.item-name { margin-top: 12px; font-family: var(--font-display); font-size: 22px; letter-spacing: .06em; color: var(--gold-hi); }
.item-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.item-card.big { max-width: 300px; }

/* игроки в партии */
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.grow {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 3px;
  border: 1px solid #23272e; border-left: 3px solid var(--c); background: rgba(255, 255, 255, .02);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.grow .avatar { width: 30px; height: 30px; font-size: 16px; }
.grow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.grow .nm small { color: var(--muted); }
.grow.off { opacity: .45; }
.grow.cur {
  background: linear-gradient(90deg, rgba(224, 170, 74, .22), rgba(224, 170, 74, .04));
  border-color: var(--gold); box-shadow: 0 0 18px rgba(224, 170, 74, .22);
}
.grow .st { width: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.grow .st.ok { color: var(--radiant); }
.grow .st.now { color: var(--gold); animation: pulse 1s ease-in-out infinite; }
.grow .st.spy { color: var(--dire); }
.grow .pts { font-family: var(--font-display); color: var(--gold); font-size: 16px; min-width: 16px; text-align: right; }

/* действия */
.act { text-align: center; padding: 26px 22px; }
.act h2 { justify-content: center; }
.act h2::after { display: none; }
.act .lead { margin: 0 0 6px; font-family: var(--font-display); font-size: 26px; letter-spacing: .08em; }
.act .sub { margin: 0 auto 18px; max-width: 560px; color: var(--muted); }
.act .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.act.my-turn { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(224, 170, 74, .35), 0 0 40px rgba(224, 170, 74, .16), 0 14px 40px rgba(0, 0, 0, .55); }
.say-form { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; text-align: left; }
.say-form .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.speaking-dots span { display: inline-block; animation: dots 1.2s infinite both; }
.speaking-dots span:nth-child(2) { animation-delay: .2s; }
.speaking-dots span:nth-child(3) { animation-delay: .4s; }
.mic { width: 64px; height: 64px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-hi); background: radial-gradient(circle, rgba(224, 170, 74, .25), transparent 70%); animation: ring 1.6s ease-out infinite; }
.mic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.vcard {
  position: relative; display: grid; justify-items: center; gap: 8px; padding: 16px 10px 12px;
  background: linear-gradient(180deg, #20242b, #12151a); border: 1px solid #333842; border-radius: 4px;
  transition: transform .12s, border-color .15s, box-shadow .15s;
}
.vcard .avatar { width: 54px; height: 54px; font-size: 28px; }
.vcard:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold-lo); }
.vcard.sel { border-color: var(--dire); box-shadow: 0 0 22px rgba(224, 70, 59, .4), inset 0 0 20px rgba(224, 70, 59, .12); }
.vcard.sel::after { content: '☠'; position: absolute; top: 4px; right: 8px; color: var(--dire); font-size: 20px; }
.vcard:disabled { opacity: .4; cursor: not-allowed; }
.vcard .who { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard .got { font-size: 12px; letter-spacing: .15em; color: var(--muted); }
.progress-line { color: var(--muted); font-size: 14px; }

/* лог ходов */
.log-panel { display: flex; flex-direction: column; max-height: 520px; min-height: 180px; }
.log-panel.compact { min-height: 0; }
.log { overflow-y: auto; display: grid; gap: 8px; align-content: start; padding-right: 6px; flex: 1; }
.sep { display: flex; align-items: center; gap: 12px; margin: 8px 0 2px; color: var(--gold-lo); font-family: var(--font-display); letter-spacing: .3em; text-transform: uppercase; font-size: 13px; }
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-hi), transparent); }
.msg { display: flex; gap: 10px; align-items: flex-start; animation: slide-in .3s ease both; }
.msg .avatar { width: 32px; height: 32px; font-size: 17px; margin-top: 2px; }
.bubble { background: rgba(255, 255, 255, .045); border: 1px solid #2a2e36; border-radius: 3px 12px 12px 12px; padding: 6px 12px 8px; max-width: min(100%, 560px); }
.bubble b { display: block; font-size: 13px; color: var(--c); letter-spacing: .03em; }
.bubble span { word-break: break-word; white-space: pre-wrap; }
.msg.mine .bubble { background: rgba(224, 170, 74, .08); border-color: rgba(224, 170, 74, .3); }
.sys { text-align: center; color: var(--muted); font-size: 13px; font-style: italic; }
.empty-log { color: #5b606a; text-align: center; padding: 22px 0; font-size: 14px; }
.voice-note { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.voice-note svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.spy-bar { display: flex; justify-content: center; }
.spy-bar .btn { width: 100%; }

/* итог */
.result { text-align: center; padding: 28px 22px 24px; overflow: hidden; }
.result::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.result.win-agents { border-color: #4e8a38; }
.result.win-agents::after { background: radial-gradient(ellipse at 50% 0%, rgba(90, 190, 70, .28), transparent 65%); }
.result.win-spy { border-color: #a8433b; }
.result.win-spy::after { background: radial-gradient(ellipse at 50% 0%, rgba(220, 60, 50, .3), transparent 65%); }
.result > * { position: relative; z-index: 1; }
.banner { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 6vw, 54px); letter-spacing: .14em; line-height: 1.1; text-transform: uppercase; animation: banner-in .9s cubic-bezier(.2, .9, .2, 1) both; }
.win-agents .banner { color: #bff29f; text-shadow: 0 0 30px rgba(110, 210, 80, .6); }
.win-spy .banner { color: #ff9d92; text-shadow: 0 0 30px rgba(230, 70, 55, .65); }
.result .why { margin: 10px auto 22px; max-width: 560px; color: #cfcab9; font-size: 17px; }
.result .why b { color: var(--gold-hi); font-weight: 600; }
.reveal { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.reveal .spy-who { display: grid; justify-items: center; gap: 8px; }
.reveal .spy-who .avatar { width: 84px; height: 84px; font-size: 44px; border-color: var(--dire); box-shadow: 0 0 0 1px #000, 0 0 28px rgba(224, 70, 59, .55); }
.reveal .spy-who small { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--dire); }
.reveal .spy-who b { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.votes-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.vchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 3px; background: rgba(255, 255, 255, .05); border: 1px solid #2a2e36; font-size: 13px; }
.vchip i { font-style: normal; color: var(--muted); }
.vchip b { color: var(--c); font-weight: 600; }
.board { margin: 0 auto 24px; max-width: 420px; text-align: left; }
.board h3 { margin: 0 0 8px; text-align: center; font-family: var(--font-display); font-weight: 400; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; font-size: 15px; }

/* модалка выбора предмета */
.modal-bg { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); animation: fade .2s ease both; }
.modal { width: min(100%, 880px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; animation: pop .25s cubic-bezier(.2, .9, .3, 1.2) both; }
.modal .m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal .m-head h2 { margin: 0; flex: 1; }
.modal .tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.modal .tools .input { flex: 1; min-width: 180px; }
.picker { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding: 2px 6px 2px 2px; }
.tile {
  display: grid; gap: 4px; padding: 5px 5px 6px; text-align: center; border-radius: 3px;
  background: linear-gradient(180deg, #1d2127, #101317); border: 1px solid #2c3139;
  transition: transform .1s, border-color .15s, box-shadow .15s;
}
.tile img { width: 100%; aspect-ratio: 88 / 64; object-fit: cover; border-radius: 2px; background: #000; }
.tile span { font-size: 11px; line-height: 1.15; color: #b6b3aa; min-height: 2.3em; display: grid; place-items: center; }
.tile:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 0 14px rgba(224, 170, 74, .25); }
.tile.sel { border-color: var(--dire); box-shadow: 0 0 18px rgba(224, 70, 59, .45); }
.m-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.m-foot .pick-info { font-size: 15px; color: var(--muted); }
.m-foot .pick-info b { color: var(--gold-hi); font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .05em; }
.warn { color: #ffb3aa; font-size: 13px; }

/* тосты */
#toasts { position: fixed; z-index: 80; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 3px; background: rgba(14, 16, 20, .96); border: 1px solid var(--gold-lo); border-left: 3px solid var(--gold); box-shadow: 0 8px 30px rgba(0, 0, 0, .6); animation: toast 3.6s ease both; }
.toast.err { border-color: #7a2a24; border-left-color: var(--dire); }

/* анимации */
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes shine { 0% { background-position: 150% 0; } 55%, 100% { background-position: -50% 0; } }
@keyframes flicker { 0%, 100% { filter: none; } 46% { filter: brightness(1.25); } 48% { filter: brightness(.85); } 50% { filter: brightness(1.15); } }
@keyframes card-in { from { opacity: 0; transform: perspective(700px) rotateY(90deg) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes banner-in { from { opacity: 0; transform: scale(1.5); letter-spacing: .5em; filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@keyframes toast { 0% { opacity: 0; transform: translateY(14px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px); } }
@keyframes dots { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(224, 170, 74, .5); } 100% { box-shadow: 0 0 0 22px rgba(224, 170, 74, 0); } }

/* адаптив */
@media (max-width: 880px) {
  .lobby { grid-template-columns: 1fr; }
  .game { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'item' 'main' 'players'; }
  .g-side { display: contents; }
  #g-item { grid-area: item; }
  #g-players { grid-area: players; }
  .item-card { max-width: 190px; }
  .timer { width: 100%; }
  .head-title { min-width: 100%; }
}
@media (max-width: 560px) {
  .brand-text { display: none; }
  .topbar { padding-left: 12px; padding-right: 12px; }
  .chip { padding: 6px 10px; }
  .g-head { padding: 12px 14px; gap: 10px; }
  .head-title h1 { font-size: 22px; }
  .act { padding: 20px 14px; }
  .act .lead { font-size: 22px; }
  .panel { padding: 16px 14px; }
  .room-code { font-size: 36px; }
  .btn.big { padding: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ===================== v2: аватарки героев, блокнот, стол, стример ===================== */
.avatar { position: relative; overflow: hidden; }
.avatar b { font-weight: 400; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.lg { width: 56px; height: 56px; font-size: 28px; }
.avatar.xl { width: 84px; height: 84px; font-size: 44px; }
.avatar-btn { padding: 0; border: 0; background: none; border-radius: 50%; line-height: 0; position: relative; flex: none; transition: transform .12s, filter .15s; }
.avatar-btn:hover { transform: scale(1.06); filter: brightness(1.15); }
.avatar-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.avatar-btn::after { content: '✎'; position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; line-height: 1; background: var(--gold); color: #1d1204; border: 1px solid #000; }
.avatar-btn.sm::after { width: 15px; height: 15px; font-size: 9px; }
.name-row { display: flex; gap: 12px; align-items: center; }
.name-row .input { flex: 1; min-width: 0; }
.hero-name { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .04em; line-height: 1.1; }
.icon-btn { position: relative; }
.icon-btn.stream.on { color: #ff9d92; border-color: #a8433b; background: rgba(200, 50, 40, .18); box-shadow: 0 0 14px rgba(224, 70, 59, .35); }
.icon-btn.stream.on::after { content: ''; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--dire); animation: pulse 1.2s ease-in-out infinite; }

/* карточки героев и замок */
.item-card.hero { aspect-ratio: 256 / 144; max-width: 260px; }
.item-card.hero.big { max-width: 340px; }
.item-card.lock { display: grid; place-items: center; border-color: #3d4452; background: radial-gradient(circle at 50% 45%, #1d222b, #0a0c10 70%); box-shadow: 0 0 0 1px #000, inset 0 0 22px rgba(0, 0, 0, .8); animation: card-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.item-card.lock::after { display: none; }
.item-card.lock svg { width: 54px; height: 54px; fill: none; stroke: #6c7686; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.role-badge.stream { color: #cfd6e4; border-color: #4a5468; background: rgba(120, 140, 180, .1); }
.stream-actions { display: grid; gap: 8px; margin-top: 14px; }
.stream-actions .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.secret { display: flex; flex-direction: column; gap: 16px; max-width: 520px; margin: 0 auto; }
.secret > * { grid-area: auto; min-width: 0; }
.secret .g-head { padding: 12px 16px; }

/* выбор в модалках */
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.chk input { accent-color: var(--gold); width: 16px; height: 16px; }
.tile { position: relative; }
.tile.sq img { aspect-ratio: 1; object-fit: cover; }
.tile.struck { opacity: .35; filter: grayscale(1); }
.tile:disabled { opacity: .4; cursor: not-allowed; border-color: var(--c, #2c3139); }
.tile:disabled:hover { transform: none; box-shadow: none; }
.tile .taken { position: absolute; top: 8px; left: 8px; font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 1px 5px; border-radius: 2px; background: rgba(0, 0, 0, .75); color: var(--c, #ccc); }
.tile.mine { border-color: var(--gold); box-shadow: 0 0 16px rgba(224, 170, 74, .45); }
.picker:has(.tile.sq) { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }

/* стол упрощённого режима */
.bgroup { margin-bottom: 14px; }
.bgroup:last-child { margin-bottom: 0; }
.bgroup-name { font-family: var(--font-display); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--gold); margin-bottom: 6px; }
.btiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.btile { position: relative; width: auto; min-width: 0; padding: 4px 4px 5px; text-align: center; border-radius: 3px; border: 1px solid #2c3139; background: linear-gradient(180deg, #1d2127, #101317); display: grid; gap: 3px; transition: transform .1s, border-color .15s, opacity .15s; }
button.btile:hover { transform: translateY(-2px); border-color: var(--gold); }
.btile img { width: 100%; aspect-ratio: 88 / 64; object-fit: cover; border-radius: 2px; background: #000; }
.btile.sq img { aspect-ratio: 1; }
.btile span { font-size: 10px; line-height: 1.1; color: #b6b3aa; min-height: 2.2em; display: grid; place-items: center; }
.btile.struck { opacity: .3; filter: grayscale(1); }
.btile.struck::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: var(--dire); transform: rotate(-18deg); }
.btile.answer { border-color: var(--gold); box-shadow: 0 0 18px rgba(224, 170, 74, .6); transform: scale(1.06); }

/* блокнот шпиона */
.nb-tabs { display: flex; width: 100%; margin-bottom: 14px; }
.nb-tabs button { flex: 1; }
.nb-count { color: var(--gold); font-weight: 600; }
.nb-pane[hidden] { display: none; }
.nb-help .ok-t { color: var(--radiant); }
.nb-help .no-t { color: var(--dire); }
.tgroup { margin-bottom: 12px; }
.tgroup-name { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { min-height: 32px; padding: 4px 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid #343944; color: #b9b7b0; font-size: 13px; transition: background .12s, border-color .12s, color .12s; }
.tchip:hover { border-color: var(--gold-lo); color: var(--text); }
.tchip[data-state='1'] { background: rgba(111, 207, 74, .16); border-color: #4e8a38; color: #c9f5b0; }
.tchip[data-state='1']::before { content: '✓ '; }
.tchip[data-state='-1'] { background: rgba(224, 70, 59, .14); border-color: #a8433b; color: #ffc0b8; text-decoration: line-through; }
.tchip[data-state='-1']::before { content: '✗ '; text-decoration: none; display: inline-block; }
.nb-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.nb-left { flex: 1; font-family: var(--font-display); font-size: 17px; letter-spacing: .05em; color: var(--gold-hi); }
.ab-card { padding: 12px 14px; margin-bottom: 10px; border: 1px solid #33383f; border-left: 3px solid var(--gold); border-radius: 3px; background: rgba(255, 255, 255, .03); }
.ab-card.used { border-left-color: #4a4f58; opacity: .85; }
.ab-card p { margin: 6px 0 10px; font-size: 14px; color: #b0aea6; }
.ab-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ab-head b { font-family: var(--font-display); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); font-size: 17px; }
.ab-state { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.hint-text { padding: 10px 12px; border-radius: 3px; background: rgba(224, 170, 74, .1); border: 1px dashed var(--gold-lo); color: #f1e2bd; font-weight: 600; }
.hint-text.stale { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }
.hint-text small { display: block; font-weight: 400; text-decoration: none; color: var(--muted); margin-top: 4px; }
.dos-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-left: 8px; border-left: 3px solid var(--c); }
.dos-row .avatar { width: 30px; height: 30px; font-size: 15px; }
.dos-name { width: 92px; flex: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c); font-size: 14px; }
.dos-row .input { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.nb-text { margin-top: 6px; }

/* системные записи в чате */
.sys.ability { color: #e8cf94; font-style: normal; padding: 6px 10px; border: 1px dashed var(--gold-lo); border-radius: 3px; background: rgba(224, 170, 74, .06); }
.sep.swap { color: var(--dire); }

@media (max-width: 560px) {
  .btiles { gap: 4px; }
  .btile { padding: 3px 3px 4px; }
  .btile span { font-size: 9px; }
  .dos-name { width: 70px; }
  .name-row .avatar.lg { width: 48px; height: 48px; }
}

.btile.dim { opacity: .38; filter: saturate(.4); }

/* пропуск хода */
.skip-overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; pointer-events: none; background: radial-gradient(ellipse at center, rgba(120, 20, 15, .55), rgba(0, 0, 0, .78) 70%); animation: fade .25s ease both; }
.skip-card { text-align: center; padding: 28px 40px; max-width: min(92vw, 640px); animation: banner-in .7s cubic-bezier(.2, .9, .2, 1) both; }
.skip-card .avatar { margin: 0 auto 14px; filter: grayscale(.85); border-color: var(--dire); box-shadow: 0 0 0 1px #000, 0 0 40px rgba(224, 70, 59, .65); }
.skip-card .avatar::after { content: '⊘'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; color: rgba(255, 90, 75, .9); text-shadow: 0 0 18px #000; }
.skip-title { font-family: var(--font-display); font-size: clamp(30px, 6vw, 52px); letter-spacing: .1em; line-height: 1.15; text-transform: uppercase; color: #ffd9d3; text-shadow: 0 0 30px rgba(230, 70, 55, .7); }
.skip-sub { margin-top: 12px; color: #e7b9b2; font-size: 16px; letter-spacing: .06em; }
.skip-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.skip-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid #343944; color: var(--text); font-size: 13px; transition: border-color .12s, background .12s; }
.skip-chip .avatar { width: 28px; height: 28px; font-size: 14px; }
.skip-chip:hover:not(:disabled) { border-color: var(--gold-lo); }
.skip-chip.sel { border-color: var(--dire); background: rgba(224, 70, 59, .16); box-shadow: 0 0 12px rgba(224, 70, 59, .3); }
.skip-chip:disabled { opacity: .4; cursor: not-allowed; }
.seg.multi { flex-wrap: wrap; }
.seg.multi button.on::before { content: '✓ '; }

/* колода способностей */
.nb-card-dot { color: var(--gold); font-size: 10px; vertical-align: middle; animation: pulse 1.2s ease-in-out infinite; }
.nb-card-dot[hidden] { display: none; }
.deal-line { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ab-card.fresh { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(224, 170, 74, .12), rgba(255, 255, 255, .02)); box-shadow: 0 0 18px rgba(224, 170, 74, .14); animation: slide-in .35s ease both; }
.ab-icon { display: inline-block; min-width: 26px; margin-right: 8px; text-align: center; color: var(--gold); font-family: var(--font-ui); font-weight: 700; }
.ab-burn { margin-top: 8px; font-size: 12px; color: var(--muted); }
.status-list { margin-top: 14px; display: grid; gap: 6px; }
.status-row { padding: 8px 10px; font-size: 14px; border-left: 3px solid var(--gold-lo); background: rgba(255, 255, 255, .03); border-radius: 0 3px 3px 0; color: #cfcbbf; }
.deck { margin-top: 14px; }
.deck-chip { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 14px; font-size: 12px; border: 1px solid var(--gold-lo); color: var(--gold-hi); background: rgba(224, 170, 74, .08); }
.deck-chip.used { opacity: .4; text-decoration: line-through; border-color: #3a3f48; color: var(--muted); background: none; }
.pick-n { font-style: normal; font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--dire); color: #fff; }
.vchip.ignored { opacity: .6; text-decoration: line-through; }
.vchip .x2 { font-style: normal; font-weight: 700; color: var(--gold); text-decoration: none; display: inline-block; }
.seg.multi { display: flex; flex-wrap: wrap; gap: 6px; border: 0; background: none; overflow: visible; }
.seg.multi button { border: 1px solid #3a3f48; border-radius: 16px; min-height: 34px; padding: 4px 12px; background: rgba(0, 0, 0, .35); font-size: 13px; }
.seg.multi button:last-child { border-right: 1px solid #3a3f48; }
.seg.multi button.on { border-color: var(--gold-lo); box-shadow: none; }

.seg.multi button.smallroom { opacity: .55; border-style: dashed; }
.seg.multi button small { color: var(--gold); font-weight: 700; }
.item-card.ability { aspect-ratio: 1; max-width: 190px; }
.item-card.ability.big { max-width: 240px; }
.item-card.ability img { object-fit: contain; background: #080a0d; }

/* ===================== страница пожеланий ===================== */
.fb-page { max-width: 760px; }
.fb { display: grid; gap: 18px; }
.fb-hero { margin-bottom: 4px; }
.fb-hero h1 { font-size: clamp(34px, 7vw, 56px); letter-spacing: .16em; }
.stars { display: flex; gap: 6px; }
.star { width: 52px; height: 52px; border-radius: 4px; background: rgba(0, 0, 0, .4); border: 1px solid #3a3f48; color: #4b505a; font-size: 30px; line-height: 1; transition: color .12s, transform .1s, border-color .12s; }
.star:hover { transform: translateY(-2px); border-color: var(--gold-lo); }
.star.on { color: var(--gold); border-color: var(--gold-lo); text-shadow: 0 0 14px rgba(224, 170, 74, .55); }
.opt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt-card { text-align: left; padding: 12px 14px; display: grid; gap: 4px; border-radius: 4px; background: rgba(0, 0, 0, .35); border: 1px solid #343944; transition: border-color .12s, background .12s; }
.opt-card b { font-family: var(--font-display); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; font-size: 17px; color: var(--gold-hi); }
.opt-card span { font-size: 13px; color: var(--muted); }
.opt-card:hover { border-color: var(--gold-lo); }
.opt-card.on { border-color: var(--gold); background: linear-gradient(180deg, rgba(224, 170, 74, .2), rgba(224, 170, 74, .05)); box-shadow: 0 0 16px rgba(224, 170, 74, .2); }
.fb-seg { display: flex; flex-wrap: wrap; }
.fb-seg button { flex: 1 1 auto; }
.fb-abilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.fb-ability { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid #2a2e36; border-left: 3px solid var(--gold-lo); border-radius: 3px; background: rgba(255, 255, 255, .03); }
.fb-ab-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fb-ab-name b { display: block; font-size: 15px; }
.fb-ab-name small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.fb-ab-btns { display: flex; gap: 6px; flex: none; }
.vote { width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; border: 1px solid #3a3f48; background: rgba(0, 0, 0, .4); color: var(--muted); transition: background .12s, color .12s, border-color .12s; }
.vote.up:hover, .vote.up.on { border-color: #4e8a38; color: #c9f5b0; background: rgba(111, 207, 74, .16); }
.vote.down:hover, .vote.down.on { border-color: #a8433b; color: #ffc0b8; background: rgba(224, 70, 59, .16); }
.fb-features { display: grid; gap: 6px; }
.fb-feature { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 3px; border: 1px solid #2a2e36; background: rgba(255, 255, 255, .03); cursor: pointer; transition: border-color .12s, background .12s; }
.fb-feature:hover { border-color: var(--gold-lo); }
.fb-feature.on { border-color: var(--gold); background: rgba(224, 170, 74, .1); }
.fb-feature input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.fb-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.fb-thanks { text-align: center; padding: 40px 22px; }
.fb-thanks h1 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 8vw, 60px); letter-spacing: .14em; }
.fb-thanks p { color: var(--muted); margin: 0 0 22px; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; font-size: 14px; }
.footer-links a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--gold-hi); }
@media (max-width: 640px) {
  .opt-cards { grid-template-columns: 1fr; }
  .star { width: 46px; height: 46px; }
}
