/* «Мафия» в браузере — стиль «Аврора» из макетов (docs/design/mafia/src/screens/app.css), телефон и ПК. */
@font-face { font-family: 'Unbounded'; src: url('../fonts/Unbounded-SemiBold.ttf') format('truetype'); font-weight: 500 700; font-display: swap; }

:root {
  --bg: #0B0D17; --surf: rgba(14,16,34,.66); --line: rgba(255,255,255,.09); --text: #EEF0FF; --muted: #B4BADD; --dim: #8A90B5;
  --teal: #2DE2C3; --teal-t: #8EF3E1; --violet: #7C4DFF; --violet-t: #CDBBFF; --pink: #FF5FA2; --red: #FF5F7A; --red-t: #FF9AAA;
  --amber: #FFC56B; --amber-t: #FFD9A0; --gold: #FFD08A; --ghost: #9BE7FF; --chip: #D6DAF5;
  --grad: linear-gradient(100deg, #2DE2C3, #7C4DFF); --day: linear-gradient(100deg, #FFC56B, #FF5FA2); --danger: linear-gradient(100deg, #FF5F7A, #B0306A);
  --dialog: #101226;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.35; overscroll-behavior: none; }
body { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
input, textarea { font: inherit; color: var(--text); }
::selection { background: rgba(124,77,255,.45); }
.scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.scroll::-webkit-scrollbar { width: 6px; } .scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }
.hscroll { overflow-x: auto; scrollbar-width: none; } .hscroll::-webkit-scrollbar { display: none; }

/* загрузка */
.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; background: radial-gradient(circle at 50% 30%, #151A3E, #0B0D17 60%); }
.boot-moon { width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fff, #E3E7FF 45%, #B9C1EE); box-shadow: 0 0 60px 18px rgba(150,190,255,.3); }
.boot-title { font: 600 34px 'Unbounded', sans-serif; background: linear-gradient(90deg, #2DE2C3, #9C7BFF 60%, #FF8FC0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boot-bar { width: 160px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; border-radius: 2px; background: var(--grad); animation: boot 1.2s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
#blazor-error-ui { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; padding: 12px 16px; border-radius: 14px; background: #3A1020; color: #FFD0D8; }
#blazor-error-ui .reload { color: #fff; font-weight: 600; margin-left: 8px; }

/* основа */
.app { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.u { font-family: 'Unbounded', sans-serif; font-weight: 600; letter-spacing: -.005em; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .tt { color: var(--teal-t); } .rt { color: var(--red-t); } .at { color: var(--amber-t); }
.lbl { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.row { display: flex; align-items: center; gap: 10px; } .sp { flex: 1; } .col { display: flex; flex-direction: column; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.glass { background: var(--surf); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.card { border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.center { display: grid; place-items: center; }
.strike { text-decoration: line-through; }
.hidden { display: none !important; }

/* кнопки, чипы */
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; font-weight: 600; font-size: 13px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); color: var(--chip); white-space: nowrap; flex: none; }
.chip svg.i { width: 16px; height: 16px; }
button.chip:hover { background: rgba(255,255,255,.10); }
.chip.on { background: rgba(255,255,255,.12); border-color: transparent; color: var(--text); }
.chip.flat { background: none; border-color: transparent; }
.chip.tl { background: rgba(45,226,195,.12); border-color: rgba(45,226,195,.32); color: var(--teal-t); }
.chip.am { background: rgba(255,197,107,.14); border-color: rgba(255,197,107,.38); color: var(--amber-t); }
.chip.rd { background: rgba(255,95,122,.14); border-color: rgba(255,95,122,.38); color: var(--red-t); }
.chip.big { height: 38px; font-size: 14px; }
.ib { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); color: var(--chip); position: relative; flex: none; }
button.ib:hover { background: rgba(255,255,255,.1); }
.ib.sm { width: 36px; height: 36px; border-radius: 11px; }
.cbadge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #E0457B; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 15px; background: var(--grad); color: #07131A; white-space: nowrap; flex: none; transition: opacity .15s, transform .1s; }
.btn:active:not(:disabled) { transform: scale(.98); opacity: .85; }
.btn:disabled { opacity: .45; }
.btn svg.i { stroke-width: 2; }
.btn.day { background: var(--day); color: #2A0E1A; }
.btn.red { background: var(--danger); color: #fff; }
.btn.ghost, .btn.out { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: var(--text); }
.btn.plain { background: none; color: var(--muted); }
.btn.ghosty { background: rgba(155,231,255,.14); border: 1px solid rgba(155,231,255,.4); color: var(--ghost); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.btn.w { width: 100%; }
.inp { height: 48px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); padding: 0 14px; width: 100%; outline: none; font-size: 15px; }
.inp:focus { border-color: rgba(45,226,195,.5); }
.inp::placeholder { color: var(--dim); }
.inp.code { letter-spacing: .3em; text-transform: uppercase; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.seg button { flex: 1; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; padding: 0 10px; min-width: 0; }
.seg button.on { background: rgba(255,255,255,.12); color: var(--text); }
.seg.sm button { height: 32px; font-size: 13px; }
.tg { width: 42px; height: 24px; border-radius: 12px; background: rgba(255,255,255,.14); position: relative; flex: none; transition: background .15s; }
.tg::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #C9CEEC; transition: left .15s; }
.tg.on { background: var(--teal); } .tg.on::after { left: 21px; background: #07131A; }
.tg:disabled { opacity: .5; }
.stepper { display: inline-flex; align-items: center; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); flex: none; }
.stepper button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); }
.stepper button:disabled { color: rgba(138,144,181,.4); }
.stepper b { min-width: 22px; text-align: center; font-size: 14px; white-space: nowrap; padding: 0 2px; }
.slider { -webkit-appearance: none; appearance: none; width: 130px; height: 20px; background: transparent; flex: none; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #2DE2C3, #7C4DFF) 0 / var(--v, 50%) 100% no-repeat, rgba(255,255,255,.12); }
.slider::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.slider::-moz-range-progress { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #2DE2C3, #7C4DFF); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #EEF0FF; margin-top: -7px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #EEF0FF; border: 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); white-space: nowrap; flex: none; }
.tag svg.i { width: 12px; height: 12px; stroke-width: 2.2; }
.tag.tl { background: rgba(45,226,195,.16); color: var(--teal-t); }
.tag.rd { background: rgba(255,95,122,.15); color: var(--red-t); }
.tag.vi { background: rgba(124,77,255,.24); color: var(--violet-t); }
.tag.am { background: rgba(255,197,107,.16); color: var(--amber-t); }
.tag.gh { background: rgba(155,231,255,.14); color: var(--ghost); }
.setrow { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.setrow .t { flex: 1; min-width: 0; } .setrow .t b { display: block; font-size: 15px; font-weight: 600; } .setrow .t span { display: block; font-size: 13px; color: var(--dim); margin-top: 2px; }
.setstack { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.setstack > b { display: block; font-size: 15px; font-weight: 600; } .setstack > span { display: block; font-size: 13px; color: var(--dim); margin: 2px 0 8px; }

/* аватары и значки ролей */
.av { border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; flex: none; position: relative; user-select: none; }
.av.ava { background: url(../img/ava.png) center / cover no-repeat; animation: avaBreath 3.6s ease-in-out infinite alternate; }
.av.ava.dead { background-image: url(../img/ava-dead.png); animation: none; }
@keyframes avaBreath { from { transform: scale(1); } to { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .av.ava { animation: none; } }
.av.bot { background: #2A2F4A !important; color: #B4BADD !important; }
.av.dead { filter: grayscale(1); opacity: .5; }
.av.ring { outline: 2px solid var(--ring, #9C7BFF); outline-offset: 2px; }
.av.dash { outline: 2px dashed rgba(255,255,255,.35); outline-offset: 2px; opacity: .55; }
.ri { display: grid; place-items: center; flex: none; background: #05060A; }
.ri img { display: block; }
.num { position: absolute; border-radius: 50%; background: #181C38; border: 1px solid rgba(255,255,255,.16); font-weight: 600; display: grid; place-items: center; color: var(--chip); }

/* небо-шапка */
.band { position: relative; overflow: hidden; flex: none; }
.band > .bg { position: absolute; inset: 0; pointer-events: none; }
.sky { position: absolute; inset: 0; transition: opacity .6s; }
.sky.night { background: linear-gradient(180deg, #04050C 0%, #0B0D17 34%, #151A3E 68%, #14394A 100%); }
.sky.day { background: linear-gradient(180deg, #4B5BD6 0%, #8C74E6 38%, #F28DBB 74%, #FFC98F 100%); }
.sky.dusk { background: linear-gradient(180deg, #120F2E 0%, #2E2266 38%, #8A4FA0 72%, #E2809B 100%); }
.sky.purge { background: linear-gradient(180deg, #0A0206 0%, #1E040C 40%, #4A0A1A 78%, #7A1226 100%); }
.sky.ghost { background: linear-gradient(180deg, #04060C 0%, #0A1220 40%, #0F2538 75%, #163A4E 100%); }
.sky.dead { background: linear-gradient(180deg, #07080C 0%, #11131D 50%, #1C2030 100%); }
.sky.win { background: linear-gradient(180deg, #3F57D9 0%, #8C74E6 34%, #F59BBE 70%, #FFD08A 100%); }
.sky.fog { background: linear-gradient(180deg, #4B5BD6 0%, #8C74E6 38%, #F28DBB 74%, #FFC98F 100%); }
.sky.mafia { background: linear-gradient(180deg, #07040A 0%, #140812 36%, #2A0F24 70%, #3E1430 100%); }
.aur { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .45; pointer-events: none; }
.st { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; }
.fogl { position: absolute; left: 0; right: 0; height: 36px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.22), rgba(255,255,255,0)); }
.confetti i { position: absolute; width: 6px; height: 10px; border-radius: 2px; }
.orb { position: absolute; border-radius: 50%; }
.orb.moon { background: radial-gradient(circle at 38% 36%, #FFFFFF 0%, #E3E7FF 45%, #B9C1EE 100%); box-shadow: 0 0 50px 14px rgba(150,190,255,.36), 0 0 140px 50px rgba(45,226,195,.12); }
.orb.moon i { position: absolute; border-radius: 50%; background: rgba(120,130,190,.35); }
.orb.sun { background: radial-gradient(circle at 42% 40%, #FFFBEA 0%, #FFE6A6 38%, #FFB86B 100%); box-shadow: 0 0 60px 18px rgba(255,190,110,.55), 0 0 160px 60px rgba(255,140,120,.22); }
.orb.bmoon { background: radial-gradient(circle at 40% 38%, #FFB0A0 0%, #E0453F 45%, #8E1426 100%); box-shadow: 0 0 60px 20px rgba(255,60,70,.45), 0 0 160px 60px rgba(255,40,60,.2); }
.ringsvg { position: absolute; }
.ringsvg circle.p { transition: stroke-dashoffset .4s linear; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; display: block; width: 100%; }
.band.dead > .bg { filter: saturate(.35); }
.band .fg { position: relative; z-index: 2; }
.eyechip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; font-weight: 600; font-size: 13px; background: rgba(255,255,255,.06); border: 1px solid; white-space: nowrap; max-width: 100%; overflow: hidden; }
.eyechip span { overflow: hidden; text-overflow: ellipsis; }
.btitle { font-family: 'Unbounded', sans-serif; font-weight: 600; letter-spacing: -.005em; line-height: 1.15; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.bhint { font-size: 13.5px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.linkish { color: var(--teal-t); font-weight: 600; cursor: pointer; }

/* ===== телефон: экран комнаты ===== */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.rband .top { display: flex; align-items: center; gap: 8px; padding: calc(14px + var(--st)) 14px 0; }
.rband .txt { padding: 14px 86px 42px 18px; }
.rband .txt .btitle { font-size: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rband.lobby .txt .btitle { font-size: 26px; }
.rband .txt .bhint { margin-top: 3px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pbar { margin: 10px 10px calc(10px + var(--sb)); min-height: 72px; border-radius: 18px; display: flex; align-items: center; gap: 10px; padding: 10px; flex: none; }
.pbar .txts { flex: 1; min-width: 0; } .pbar .txts .c { font-size: 13px; color: var(--dim); } .pbar .txts .t { font-size: 17px; font-weight: 600; }
.pbar .txts .c { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar .txts .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }
.mic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--day); color: #2A0E1A; flex: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.mic svg.i { width: 24px; height: 24px; stroke-width: 2; }
.mic.on { animation: pulse .9s ease-in-out infinite alternate; box-shadow: 0 0 0 6px rgba(255,197,107,.25); }
.mic.off { background: rgba(255,255,255,.08); color: var(--muted); }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.08); } }
.roletile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }

/* плитки игроков (телефон) */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 0 8px; }
.tilesbox { flex: none; overflow-y: auto; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 7px 2px 6px; border-radius: 14px; border: 1px solid transparent; cursor: pointer; user-select: none; -webkit-user-select: none; }
.tile .avbox { position: relative; padding: 5px; }
.tile .nm { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile .num { left: -2px; top: -2px; width: 17px; height: 17px; font-size: 9.5px; }
.tile .tagbox { min-height: 17px; margin-top: 3px; display: flex; align-items: center; }
.tile .tag { font-size: 10px; padding: 1px 6px; max-width: 100%; overflow: hidden; }
.tile.sel { background: rgba(45,226,195,.12); border-color: rgba(45,226,195,.5); }
.tile.selam { background: rgba(255,197,107,.12); border-color: rgba(255,197,107,.55); }
.tile.selrd { background: rgba(255,95,122,.12); border-color: rgba(255,95,122,.55); }
.tile.team { background: rgba(255,95,122,.07); }
.tile.dead .nm { text-decoration: line-through; color: var(--dim); } .tile.dead .tagbox { opacity: .7; }
.tile .vc { position: absolute; right: -2px; top: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--amber); color: #2A0E1A; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.tile .ricon { position: absolute; right: -2px; top: -2px; }
.tiles.compact .tile .av { width: 36px !important; height: 36px !important; font-size: 14px !important; }

/* строки игроков (ПК и лобби) */
.plist { display: flex; flex-direction: column; gap: 3px; }
.prow { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 4px 10px 4px 8px; border-radius: 12px; border: 1px solid transparent; position: relative; cursor: pointer; text-align: left; width: 100%; }
.prow:hover { background: rgba(255,255,255,.03); }
.prow .n { width: 22px; text-align: center; font-weight: 600; font-size: 12px; color: var(--dim); flex: none; }
.prow .who { flex: 1; min-width: 0; }
.prow .nm { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .sub.am { color: var(--amber-t); }
.prow .r { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.prow.sel { background: rgba(45,226,195,.10); border-color: rgba(45,226,195,.45); }
.prow.selam { background: rgba(255,197,107,.10); border-color: rgba(255,197,107,.5); }
.prow.selrd { background: rgba(255,95,122,.10); border-color: rgba(255,95,122,.5); }
.prow.team { background: rgba(255,95,122,.06); }
.prow.dead { opacity: .55; } .prow.dead .nm { text-decoration: line-through; }
.prow .vbar { position: absolute; left: 8px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--amber); }
.prow.big { min-height: 58px; } .prow.big .nm { font-size: 15px; } .prow.big .sub { font-size: 12.5px; }

/* чат */
.chat { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; min-height: 0; }
.tabsrow { display: flex; gap: 4px; padding: 10px; align-items: center; flex: none; }
.tabsrow .chip { height: 38px; }
.chat .top { padding: 0 14px; flex: none; }
.feed { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 11px; padding: 8px 14px 10px; }
.feed > .spacer { flex: 1; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 100%; }
.msg .mb { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; max-width: calc(100% - 42px); }
.msg .bub { padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: rgba(255,255,255,.06); line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; cursor: pointer; }
.msg .who { font-size: 12.5px; font-weight: 600; margin-bottom: 3px; display: flex; gap: 6px; align-items: center; }
.msg .who .tag { font-size: 10px; padding: 1px 6px; }
.msg.me { flex-direction: row-reverse; } .msg.me .mb { align-items: flex-end; } .msg.me .bub { border-radius: 14px 4px 14px 14px; background: rgba(124,77,255,.22); }
.msg.maf .bub { background: rgba(255,95,122,.10); border: 1px solid rgba(255,95,122,.18); }
.msg.dd .bub { background: rgba(255,255,255,.04); color: #C9CEEC; }
.msg .reply { font-size: 12.5px; color: var(--dim); margin-bottom: 3px; }
.reacts { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.react { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); font-size: 13px; font-weight: 600; }
.react.my { background: rgba(124,77,255,.25); border-color: rgba(124,77,255,.5); }
.picker { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--dialog); border: 1px solid rgba(255,255,255,.12); margin-top: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.4); flex-wrap: wrap; max-width: 300px; }
.picker button { width: 36px; height: 36px; border-radius: 50%; font-size: 19px; display: grid; place-items: center; }
.picker button:hover { background: rgba(255,255,255,.08); }
.voice { display: flex; align-items: center; gap: 8px; min-width: 200px; }
.voice .pl { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.voice .pl svg.i { width: 13px; height: 13px; stroke-width: 2; }
.voice .wv { flex: 1; display: flex; align-items: center; gap: 2px; height: 22px; }
.voice .wv i { width: 3px; border-radius: 2px; background: rgba(255,255,255,.45); flex: none; }
.voice .wv i.on { background: var(--teal); }
.sys { align-self: center; font-size: 12.5px; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); text-align: center; max-width: 100%; }
.sys.tl { border-color: rgba(45,226,195,.3); color: var(--teal-t); }
.sys.am { border-color: rgba(255,197,107,.35); color: var(--amber-t); }
.sys.rd { border-color: rgba(255,95,122,.35); color: var(--red-t); }
.sys.gh { border-color: rgba(155,231,255,.35); color: var(--ghost); }
.composer { margin: 0 12px 12px; min-height: 50px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; flex: none; }
.composer input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; }
.composer input::placeholder { color: var(--dim); }
.composer.rec input::placeholder { color: var(--red-t); }
.composer.off { border-style: dashed; border-color: rgba(255,255,255,.16); background: none; color: var(--dim); padding: 10px 14px; }
.composer .snd, .composer .mc { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.composer .snd { background: var(--grad); color: #07131A; } .composer .snd svg.i { stroke-width: 2; }
.composer .snd.day { background: var(--day); color: #2A0E1A; } .composer .snd.danger { background: var(--danger); color: #fff; } .composer .snd.neutral { background: rgba(255,255,255,.14); color: var(--text); }
.composer .mc { background: rgba(255,255,255,.07); color: var(--muted); } .composer .mc.on { background: var(--danger); color: #fff; }
.ev { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); line-height: 1.4; color: var(--chip); }
.ev > i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.ev b { color: var(--text); font-weight: 600; }
.note { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(45,226,195,.07); border: 1px solid rgba(45,226,195,.25); font-size: 13px; margin-bottom: 6px; }
.talkcard { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255,197,107,.07); border: 1px solid rgba(255,197,107,.35); color: var(--amber-t); font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.narr { padding: 10px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(45,226,195,.10), rgba(124,77,255,.08)); border: 1px solid rgba(45,226,195,.35); margin-bottom: 8px; }
.narr .w { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--teal-t); }
.narr p { margin: 6px 0 0; font-size: 15px; line-height: 1.4; }
.empty { padding: 24px; text-align: center; color: var(--muted); }

/* лобби */
.lobbybody { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 10px 0; }
.lpane { flex: 1; min-height: 0; padding-top: 8px; display: flex; flex-direction: column; }
.subtabs { display: flex; gap: 8px; padding: 10px 0 4px; flex: none; }
.rolecardrow { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.rolecardrow .t { flex: 1; min-width: 0; } .rolecardrow .t b { display: block; font-size: 15px; font-weight: 600; } .rolecardrow .t span { font-size: 12.5px; color: var(--dim); }
.roster { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.roster .bar { display: flex; gap: 4px; height: 8px; margin: 10px 0 8px; } .roster .bar i { border-radius: 4px; }
.evrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.evrow.master { border-color: rgba(45,226,195,.35); background: rgba(45,226,195,.07); }
.evrow .t { flex: 1; min-width: 0; } .evrow .t b { display: block; font-size: 15.5px; font-weight: 600; }
.evicon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #05060A; border: 1.5px solid; flex: none; }
.chance { color: var(--teal-t); font-weight: 600; font-size: 15px; padding: 4px 6px; border-radius: 8px; }
button.chance:hover { background: rgba(45,226,195,.1); }
.secthead { display: flex; align-items: center; gap: 10px; margin: 20px 0 2px; }
.secthead.first { margin-top: 6px; }

/* раскрытие роли */
.rolecard { border-radius: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1.5px solid; padding: 22px 18px; }
.rolecard .rname { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 30px; line-height: 1.15; max-width: 100%; }
.rolecard p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }

/* итоги */
.reward { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.achv { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,208,138,.07); border: 1px solid rgba(255,208,138,.35); }

/* листы и окна */
.scrim { position: absolute; inset: 0; z-index: 50; background: rgba(4,5,12,.62); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet { width: 100%; max-height: 88dvh; border-radius: 24px 24px 0 0; background: var(--dialog); border: 1px solid rgba(255,255,255,.1); border-bottom: 0; padding: 10px 18px calc(24px + var(--sb)); animation: up .22s ease; display: flex; flex-direction: column; }
.sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); margin: 0 auto 14px; flex: none; }
.sheet .scroll { min-height: 0; }
.pc .scrim { align-items: center; }
.pc .sheet { width: 480px; max-height: 84dvh; border-radius: 24px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 24px; }
.pc .sheet .grip { display: none; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.menuitem { display: flex; align-items: center; gap: 14px; padding: 11px 6px; border-radius: 14px; width: 100%; text-align: left; }
.menuitem:hover { background: rgba(255,255,255,.04); }
.menuitem .ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.06); display: grid; place-items: center; flex: none; color: var(--chip); }
.menuitem .t { flex: 1; min-width: 0; } .menuitem .t b { display: block; font-size: 15.5px; font-weight: 600; } .menuitem .t span { display: block; font-size: 12.5px; color: var(--dim); }
.menuitem.red .t b, .menuitem.red .ic { color: var(--red-t); }
.dialogbox { width: min(420px, calc(100vw - 48px)); padding: 24px 22px; border-radius: 24px; background: var(--dialog); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; animation: up .22s ease; }
.overlay { position: absolute; inset: 0; z-index: 60; background: rgba(4,5,12,.62); display: grid; place-items: center; animation: fade .18s ease; }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 12px 6px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }

/* уведомления, связь */
.toasts { position: absolute; left: 0; right: 0; bottom: calc(96px + var(--sb)); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 520px; padding: 12px 16px; border-radius: 14px; background: var(--dialog); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: up .2s ease; }
.toast b { display: block; font-size: 14px; } .toast span { display: block; font-size: 12.5px; color: var(--muted); }
.banner { position: absolute; left: 12px; right: 12px; top: calc(6px + var(--st)); z-index: 80; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,197,107,.16); border: 1px solid rgba(255,197,107,.45); color: var(--amber-t); font-weight: 600; font-size: 13px; backdrop-filter: blur(12px); max-width: 640px; margin: 0 auto; }

/* переход «Горизонт» и сцены */
.horizon { position: absolute; inset: 0; z-index: 70; opacity: 0; pointer-events: none; }
.horizon.on { pointer-events: auto; cursor: pointer; }
.horizon canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.horizon .cap { position: absolute; left: 22px; right: 22px; top: calc(250 / 720 * 100%); text-align: center; opacity: var(--cap, 0); transform: translateY(var(--shift, 14px)); }
.horizon .cap .e { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: rgba(238,240,255,.78); font-weight: 600; }
.horizon .cap .h { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(34px, 6vw, 76px); line-height: 1.1; margin: 10px 0 12px; letter-spacing: -.01em; }
.horizon .cap .h.n { background: linear-gradient(90deg, #2DE2C3, #9C7BFF 60%, #FF8FC0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.horizon .cap .h.d { color: #fff; text-shadow: 0 4px 30px rgba(120,40,90,.35); }
.horizon .cap .s { font-size: clamp(16px, 2vw, 20px); color: rgba(238,240,255,.86); }
.scene { position: absolute; inset: 0; z-index: 72; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(4,6,14,.88), rgba(4,5,12,.97) 70%); cursor: pointer; animation: fade .22s ease; padding: 24px; text-align: center; }
.scene .halo { position: relative; width: 260px; height: 260px; display: grid; place-items: center; animation: grow .42s cubic-bezier(0,0,.2,1); }
.scene .halo svg { position: absolute; inset: 0; }
@keyframes grow { from { transform: scale(.7); } to { transform: none; } }
.scene .dcard { width: 200px; margin: 0 auto; padding: 22px 16px 18px; border-radius: 24px; background: linear-gradient(180deg, #2A0F1C, #120D1E); border: 1.5px solid rgba(255,95,122,.45); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scene .dcard .av { animation: dim .9s forwards; }
@keyframes dim { to { opacity: .55; } }
.scene .skip { position: absolute; left: 0; right: 0; bottom: calc(30px + var(--sb)); font-size: 12.5px; color: var(--dim); }

/* ===== меню вне партии ===== */
.page { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pband .top { display: flex; align-items: center; gap: 8px; padding: calc(14px + var(--st)) 14px 0; min-height: 40px; }
.pband .txt { padding: 12px 70px 34px 18px; display: flex; align-items: center; gap: 14px; }
.pband .txt .btitle { font-size: 28px; }
.pband .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.pcontent { flex: 1; min-height: 0; padding: 14px 14px 20px; }
.pnav { flex: none; display: flex; padding: 8px 0 calc(8px + var(--sb)); border-top: 1px solid var(--line); background: rgba(10,12,24,.92); }
.pnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--dim); padding: 4px 0; }
.pnav button.on { color: var(--text); } .pnav button.on svg.i { color: var(--teal); }
.pc .pnav { position: absolute; top: calc(18px + var(--st)); left: 50%; transform: translateX(-50%); z-index: 5; border: 1px solid var(--line); border-radius: 16px; padding: 4px; gap: 4px; background: rgba(10,12,24,.6); backdrop-filter: blur(16px); }
.pc .pnav button { flex-direction: row; gap: 8px; padding: 8px 14px; border-radius: 12px; font-size: 13.5px; }
.pc .pnav button.on { background: rgba(255,255,255,.1); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qcard { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.qcard:hover { background: rgba(255,255,255,.07); }
.qcard b { font-size: 16px; } .qcard span { font-size: 13px; color: var(--muted); }
.roomrow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.roomrow .t { flex: 1; min-width: 0; } .roomrow .t b { display: block; font-size: 15px; } .roomrow .t span { font-size: 13px; color: var(--muted); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 16px 0 6px; }
.podium .p { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 96px; text-align: center; }
.podium .blk { width: 96px; border-radius: 14px 14px 4px 4px; display: grid; place-items: center; font: 600 30px 'Unbounded', sans-serif; }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shopitem { border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.shopitem.on { border-color: rgba(45,226,195,.5); background: rgba(45,226,195,.06); }
.swatch { height: 110px; border-radius: 12px; position: relative; overflow: hidden; display: grid; place-items: center; }
.hubs { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.hubs i { width: 12px; height: 12px; border-radius: 4px; background: var(--teal); transform: rotate(45deg); display: inline-block; }
.rolerules { display: flex; flex-direction: column; gap: 8px; }
.rulecard { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid; }
.rulecard .h { display: flex; align-items: center; gap: 12px; } .rulecard p { margin: 8px 0 0; color: var(--chip); line-height: 1.45; }
.bar100 { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; } .bar100 i { display: block; height: 100%; border-radius: 3px; }
.splash { position: absolute; inset: 0; display: flex; flex-direction: column; }
.splash .logo { font: 600 clamp(60px, 16vw, 86px) 'Unbounded', sans-serif; background: linear-gradient(90deg, #2DE2C3, #9C7BFF 55%, #FF5FA2); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.loginbox { width: min(420px, calc(100% - 28px)); padding: 18px; border-radius: 22px; margin: 0 auto; }
.invite { padding: 12px 14px; border-radius: 16px; background: rgba(45,226,195,.08); border: 1px solid rgba(45,226,195,.35); }

/* ===== ПК: комната в три колонки (как Windows-версия) ===== */
.pcroom { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pcroom .rband .txt { padding: 18px 140px 52px 28px; }
.pcroom .rband .txt .btitle { font-size: 34px; }
.pcroom .rband .top { padding: 16px 20px 0; }
.cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 318px minmax(0, 1fr) 330px; gap: 14px; padding: 0 14px 14px; margin-top: -26px; position: relative; z-index: 3; }
.pane { border-radius: 18px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.pane .head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; flex: none; }
@media (max-width: 1180px) { .cols { grid-template-columns: 280px minmax(0, 1fr) 300px; } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(45,226,195,.25); border-top-color: var(--teal); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.pbar .btn.grow { flex: 1; } .pbar .btn.grow2 { flex: 1.4; }

/* ---------- повтор ---------- */
.rtimeline { display: flex; gap: 4px; }
.rtimeline button { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 6px 0; text-align: left; }
.rtimeline .ln { display: block; width: 100%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.10); overflow: hidden; }
.rtimeline .ln i { display: block; height: 100%; border-radius: 3px; transition: width .25s linear; }
.rtimeline .nm { font-size: 12px; font-weight: 600; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtimeline .on .nm { color: var(--text); }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bullets li { position: relative; padding-left: 16px; color: var(--muted); line-height: 1.45; }
.bullets li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--teal)); }
