/* Крокодил — оформление как у «Крокодила» из старого ВК (2015–2016): зелёная шапка, белые карточки, вкладки.
   Раскладка для компьютера — ровно 1000×750, игра масштабирует её под окно (zoom). На телефоне — своя, вертикальная (body.m). */
:root {
  --f: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --green: #5d9c3b;
  --green-d: #4c8a2b;
  --green-t: #689f38;
  --amber: #f2b705;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.05);
  --txt: #212121;
  --muted: #9e9e9e;
  --line: #e3e3e3;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font: 14px/1.35 var(--f);
  color: var(--txt);
  background: #7fbf55;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
}
button { font-family: var(--f); }
[hidden] { display: none !important; }
#bg { position: fixed; inset: -30px; background-size: cover; background-position: center; filter: blur(7px); z-index: 0; }
#app { position: relative; width: 1000px; height: 750px; flex: none; z-index: 1; opacity: 0; transition: opacity 0.2s; }
body.ready #app { opacity: 1; }
.loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; font: 500 16px var(--f); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); z-index: 2; }
body.ready .loading { display: none; }
.fatal { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); background: #fff; padding: 18px 22px; border-radius: 2px; box-shadow: var(--shadow); z-index: 50; max-width: 90vw; text-align: center; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  font: 500 13px var(--f);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn.green { background: #4f8c2c; color: #fff; }
.btn.green:hover { background: #467e26; }
.btn.white { background: #fff; color: #333; }
.btn.white:hover { background: #f5f5f5; }
.btn:active { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); }
.btn:disabled { background: #c9c9c9; color: #fff; box-shadow: none; cursor: default; }
.btn .coin { display: inline-flex; align-items: center; gap: 3px; }
.btn.nocaps { text-transform: none; } /* «huEVO» пишется только так */
.mchat .chatempty { margin: auto; color: #bbb; font-size: 13px; text-align: center; }

/* ---------- шапка ---------- */
#head {
  position: absolute;
  left: 0;
  top: 0;
  width: 1000px;
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 21px 0 8px;
  background: linear-gradient(rgba(99, 161, 64, 0.97), rgba(80, 143, 48, 0.97));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  color: #fff;
}
.hbtn {
  height: 36px;
  min-width: 76px;
  padding: 0 12px;
  border: 0;
  border-radius: 2px;
  background: #4c8a2a;
  color: #fff;
  font: 500 13px var(--f);
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hbtn:hover { background: #437d24; }
#bGroup { width: 90px; text-transform: none; font-weight: 700; }
.htitle { margin-left: 8px; flex: 1; min-width: 0; }
#title { font-size: 20px; line-height: 24px; }
#subtitle { font-size: 15px; line-height: 21px; font-weight: 500; }
.hright { display: flex; gap: 14px; }

/* ---------- лист с вкладками ---------- */
#panel {
  position: absolute;
  left: 20px;
  top: 78px;
  width: 960px;
  height: 672px;
  background: #ededed;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
#tabs { position: relative; height: 49px; display: flex; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding-right: 24px; }
.tlist { display: flex; flex: 1; min-width: 0; }
#tabs [data-tab] {
  position: relative;
  padding: 0 24px;
  border: 0;
  background: none;
  font: 500 13px var(--f);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #757575;
  cursor: pointer;
  white-space: nowrap;
}
#tabs [data-tab]:hover { color: #555; }
#tabs [data-tab].on { color: var(--green-t); }
#tabs [data-tab].on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--amber); }
.tsound { align-self: center; width: 30px; height: 30px; margin-right: 10px; border: 0; background: none; color: #9e9e9e; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tsound:hover { background: #f2f2f2; color: #666; }
.coins { align-self: center; display: flex; align-items: center; gap: 4px; font-size: 13px; color: #333; }
.coins b { font-weight: 700; }
.coins i { display: inline-flex; }
.coins.bump { animation: bump 0.45s; }
@keyframes bump { 40% { transform: scale(1.25); } }

.view { position: absolute; left: 0; right: 0; top: 50px; bottom: 0; }
.card { position: absolute; background: #fff; box-shadow: var(--shadow); }

/* ---------- аватары ---------- */
.ava { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; color: #fff; font: 500 15px var(--f); background: #9e9e9e; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ava.big { width: 122px; height: 122px; font-size: 48px; }
sup.lvl, .pname sup { font-size: 10px; color: #666; margin-left: 1px; }

/* ---------- главная ---------- */
.profile { left: 52px; top: 4px; width: 543px; height: 225px; display: flex; padding: 30px 30px 20px 26px; }
.pava { width: 140px; display: flex; flex-direction: column; align-items: center; }
.lvbar { width: 140px; height: 4px; margin-top: 38px; background: #e0e0e0; border-radius: 2px; overflow: hidden; }
.lvbar i { display: block; height: 100%; width: 0; background: #8bc34a; transition: width 0.6s; }
.lvnext { margin-top: 5px; max-width: 170px; font-size: 11px; line-height: 14px; color: var(--muted); text-align: center; }
.pinfo { flex: 1; margin-left: 26px; padding-top: 3px; min-width: 0; }
.pname { font-size: 20px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstats { margin-top: 10px; font-size: 15px; }
.pstats div { display: flex; justify-content: space-between; line-height: 24px; }
.pstats span { color: #555; }
.pguest { margin-top: 14px; color: #555; font-size: 14px; }
.pguest .btn { margin-top: 14px; }
.pedit { position: absolute; right: 14px; bottom: 12px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: #8a8a8a; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pedit:hover { background: #f2f2f2; color: #555; }
.rules { left: 616px; top: 4px; width: 345px; height: 432px; padding: 28px 22px 16px; display: flex; flex-direction: column; }
.rlinks { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; color: #bbb; font-size: 13px; }
.rlinks button, .linkbtn { border: 0; background: none; padding: 0; font: 400 13px var(--f); color: var(--green-t); cursor: pointer; border-bottom: 1px dashed #b5d48f; }
.rlinks button:hover, .linkbtn:hover { color: #4f8c2c; }
.slabel .sroom { float: right; color: #bbb; font-size: 12px; margin-top: 2px; }
.slabel .sroom svg { vertical-align: -2px; margin-right: 3px; }
.jumpl.invite { margin-top: 0; }
.jumpl + .jumpl.invite { margin-top: -6px; }
.invbox { background: #fff; box-shadow: var(--shadow); padding: 18px 18px 16px; text-align: center; }
.invbox p { margin: 0 0 12px; color: #444; font-size: 14px; line-height: 20px; }
.invcode { font: 700 34px/40px var(--f); letter-spacing: 6px; color: #3d6c08; margin: 6px 0 14px; -webkit-user-select: all; user-select: all; }
.invlink { width: 100%; height: 38px; border: 1px solid #dcdcdc; border-radius: 2px; padding: 0 10px; font: 400 13px var(--f); color: #333; background: #fafafa; -webkit-user-select: all; user-select: all; }
.invhint { margin-top: 6px; font-size: 12px; color: #999; }
.codein { width: 100%; height: 48px; border: 0; border-bottom: 2px solid #c5e1a5; text-align: center; font: 700 28px var(--f); letter-spacing: 8px; text-transform: uppercase; outline: none; color: #3d6c08; -webkit-user-select: text; user-select: text; }
.codein:focus { border-bottom-color: #7cb342; }
.codein::placeholder { font-size: 15px; font-weight: 400; letter-spacing: 0; color: #bbb; text-transform: none; }
.dlg.small { width: 420px; }
.rcroc { width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; }
.rules h2 { margin: 30px 0 12px; font: 700 20px var(--f); }
.rules p { margin: 0; font-size: 15px; line-height: 21px; color: #333; }
.rules .rtext2 { margin-top: 8px; color: #555; }
#bPlay { margin: auto auto 0; width: 92px; }

/* ---------- игра: холст ---------- */
.cvcard { left: 30px; top: 9px; width: 610px; height: 480px; overflow: hidden; }
.cv { position: absolute; left: 5px; top: 0; width: 600px; height: 480px; }
.cv canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; touch-action: none; }
.cv .cv-live { cursor: default; }
.cvcard.drawing .cv-live { cursor: none; }
.brush { position: absolute; left: -4px; top: -4px; width: 56px; height: 56px; pointer-events: none; opacity: 0; transition: opacity 0.25s; will-change: transform; }
.brush svg { width: 56px; height: 56px; display: block; filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.25)); }
.brush.on { opacity: 1; }
.brush.on.idle { opacity: 0.55; }
.cvtop { position: absolute; left: 0; right: 0; top: 0; height: 40px; pointer-events: none; }
.timer { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); font: 700 20px/24px var(--f); color: #111; letter-spacing: 0.5px; }
.timer.hot { color: #d32f2f; }
.word {
  position: absolute;
  right: 12px;
  top: 8px;
  font: 700 20px/24px var(--f);
  text-transform: uppercase;
  color: #86c21d;
  -webkit-text-stroke: 3px #3d6c08;
  paint-order: stroke fill;
  letter-spacing: 0.3px;
  max-width: 44%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.word.mask { -webkit-text-stroke: 0; color: #9e9e9e; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 3px; top: 12px; }
.word.mask small { letter-spacing: 0; margin-left: 6px; font-size: 12px; }
.cvacts { position: absolute; left: 12px; top: 11px; display: flex; gap: 12px; pointer-events: auto; }
.cvacts button { border: 0; background: none; padding: 0; font: 400 12px var(--f); color: #8a8a8a; cursor: pointer; border-bottom: 1px dashed #bbb; }
.cvacts button:hover { color: #555; }
.chat { position: absolute; left: 8px; bottom: 8px; width: 360px; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; }
.msg { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: #333; text-shadow: 0 0 3px #fff, 0 0 3px #fff; animation: msgin 0.2s; }
@keyframes msgin { from { opacity: 0; transform: translateY(4px); } }
.msg .mk { display: flex; flex-direction: column; flex: none; }
.msg .mk button { width: 16px; height: 13px; padding: 0; border: 0; background: none; color: #c5cfc0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.msg .mk button.dn { color: #e0c4c4; }
.msg.warm .mk .up { color: #43a047; }
.msg.cold .mk .dn { color: #e53935; }
.cvcard.drawing .msg .mk button { pointer-events: auto; cursor: pointer; }
.cvcard.drawing .msg .mk button:hover { transform: scale(1.2); }
.msg .who { color: #a1453e; font-weight: 700; white-space: nowrap; }
.msg .who sup { font-weight: 400; font-size: 9px; }
.msg .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.warm .txt { color: #2e7d32; font-weight: 500; }
.msg.cold .txt { color: #999; text-decoration: line-through; }
.msg.near .txt { color: #ef6c00; }
.msg.sys .txt { color: #777; font-style: italic; }
.cvmsg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255, 255, 255, 0.92); }
.cvmsg h3 { margin: 14px 0 6px; font: 500 20px var(--f); }
.cvmsg p { margin: 0; color: #777; font-size: 14px; max-width: 360px; }
.cvmsg .btn { margin-top: 16px; }

/* ---------- игра: игроки ---------- */
.side { left: 672px; top: 9px; width: 280px; height: 480px; padding: 0; display: flex; flex-direction: column; }
.slabel { padding: 22px 16px 12px; color: var(--muted); font-size: 14px; }
.sdiv { height: 1px; background: var(--line); margin-top: 9px; }
.prow { display: flex; align-items: center; gap: 20px; padding: 10px 16px; min-height: 56px; cursor: default; }
.prow.click { cursor: pointer; }
.prow.click:hover { background: #f7f7f7; }
.prow .nm { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.prow.me .nm { font-weight: 500; }
.prow.away { opacity: 0.45; }
.prow .q { margin-left: auto; color: #8bc34a; display: flex; }
.plist { flex: 1; overflow-y: auto; }
.prow-wrap { min-height: 56px; }
.prow-wrap .empty { padding: 18px 16px; color: #bbb; font-size: 13px; }
.jumpl { margin: 8px 16px 14px; height: 32px; border: 1px solid #c5e1a5; border-radius: 2px; background: #f6fbef; color: #4f8c2c; font: 500 12px var(--f); text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.jumpl:hover { background: #eef7e2; }
.jumpl:disabled { color: #9e9e9e; border-color: #e0e0e0; background: #fafafa; cursor: default; }

/* ---------- игра: нижняя панель ---------- */
.bottom { left: 8px; top: 505px; width: 632px; height: 96px; }
.tools { position: absolute; inset: 0; }
.curcolor { position: absolute; left: 11px; top: 37px; width: 22px; height: 22px; border-radius: 50%; background: #1c1c1c; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.sliders { position: absolute; left: 64px; top: 12px; display: grid; grid-template-columns: 96px 92px; row-gap: 14px; align-items: center; }
.sliders label { font-size: 14px; color: #333; }
.rng { -webkit-appearance: none; appearance: none; width: 92px; height: 22px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.rng::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #8bc34a var(--p), #c5e1a5 var(--p)); }
.rng::-moz-range-track { height: 2px; background: #c5e1a5; }
.rng::-moz-range-progress { height: 2px; background: #8bc34a; }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: #7cb342; border: 0; box-shadow: 0 0 0 0 rgba(124, 179, 66, 0.25); transition: box-shadow 0.15s; }
.rng::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #7cb342; border: 0; }
.rng:active::-webkit-slider-thumb, .rng:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 11px rgba(124, 179, 66, 0.25); width: 22px; height: 22px; margin-top: -10px; }
.palette { position: absolute; left: 264px; top: 23px; display: grid; grid-template-columns: repeat(10, 22px); gap: 5px 4px; }
.palette button { width: 22px; height: 22px; padding: 0; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 1px; cursor: pointer; }
.palette button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #555; position: relative; z-index: 1; }
.tbtns { position: absolute; left: 541px; top: 14px; width: 82px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.tbtns button { border: 0; background: none; padding: 2px 4px; font: 500 13px var(--f); letter-spacing: 0.3px; color: #424242; text-transform: uppercase; cursor: pointer; }
.tbtns button:hover { color: #000; }
.guess { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.guess input {
  flex: 1;
  height: 40px;
  border: 0;
  border-bottom: 2px solid #c5e1a5;
  font: 400 17px var(--f);
  color: #222;
  padding: 0 4px;
  outline: none;
  background: transparent;
  -webkit-user-select: text;
  user-select: text;
}
.guess input:focus { border-bottom-color: #7cb342; }
.guess input:disabled { color: #aaa; }
.guess .btn { width: 128px; }
.gtip { position: absolute; left: 22px; top: -14px; padding: 5px 10px; background: #ffe082; color: #5d4037; font-size: 13px; font-weight: 500; border-radius: 2px; box-shadow: var(--shadow); animation: msgin 0.2s; }

/* ---------- рейтинг ---------- */
.topcard { left: 52px; top: 4px; width: 909px; bottom: 22px; display: flex; flex-direction: column; }
.tophead { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 24px 6px; }
.tophead h2 { margin: 0; font: 500 20px var(--f); }
.topcount { color: var(--muted); font-size: 13px; }
.topnote { padding: 0 24px 10px; color: #777; font-size: 13px; border-bottom: 1px solid var(--line); }
.toplist { flex: 1; overflow-y: auto; }
.trow { display: flex; align-items: center; gap: 16px; padding: 8px 24px; border-bottom: 1px solid #f2f2f2; }
.trow .rk { width: 30px; text-align: center; font: 700 15px var(--f); color: #9e9e9e; }
.trow .rk.r1 { color: #e0a800; } .trow .rk.r2 { color: #9aa4ad; } .trow .rk.r3 { color: #c47c3c; }
.trow .nm { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .pt { font: 500 14px var(--f); color: var(--green-t); white-space: nowrap; }
.trow.me { background: #f6fbef; }
.trow.click { cursor: pointer; }
.trow.click:hover { background: #f7f7f7; }
.tgap { text-align: center; color: #bbb; padding: 4px; }
.tempty { padding: 40px 24px; text-align: center; color: #888; }

/* ---------- монеты ---------- */
.shopcard { left: 52px; top: 4px; width: 543px; height: 394px; padding: 24px 26px; }
.shophead { display: flex; align-items: center; gap: 18px; }
.shophead h2 { margin: 0; font: 500 20px var(--f); }
.shopbal { margin-top: 4px; color: #555; font-size: 15px; }
.shopcard h3, .shopinfo h3 { margin: 26px 0 12px; font: 500 15px var(--f); color: #555; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pack { border: 1px solid #ececec; border-radius: 2px; padding: 16px 10px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pack b { font: 700 16px var(--f); }
.pack span { color: #777; font-size: 13px; }
.pack .btn { margin-top: 6px; width: 100%; }
.shopoff { margin-top: 18px; color: #777; font-size: 13px; }
.shopinfo { left: 616px; top: 4px; width: 345px; height: 394px; padding: 2px 24px 20px; }
.shopinfo ul { margin: 0; padding-left: 20px; color: #333; font-size: 14px; line-height: 24px; }

/* ---------- окно «Игра завершена» ---------- */
.overlay { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.35); animation: fadein 0.2s; }
@keyframes fadein { from { opacity: 0; } }
.dlg { width: 514px; background: #f1f6ec; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transform: scale(var(--k, 1)); animation: popin 0.2s; }
.dlg.still { animation: none; }
@keyframes popin { from { transform: scale(calc(var(--k, 1) * 0.95)); opacity: 0; } }
.dlg-h { height: 66px; display: flex; align-items: center; padding: 0 16px; background: #4f8b2c; color: #fff; font: 400 18px var(--f); }
.dlg-h .x { margin-left: auto; width: 32px; height: 32px; border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.dlg-b { padding: 16px; }
.wcard { background: #fff; box-shadow: var(--shadow); text-align: center; padding: 14px 10px 12px; }
.wcard .wd { font: 400 28px/34px var(--f); text-transform: uppercase; letter-spacing: 0.5px; }
.stars { display: inline-flex; gap: 4px; margin-top: 6px; }
.stars button { border: 0; background: none; padding: 0; display: flex; cursor: default; }
.stars.can button { cursor: pointer; }
.stars.can button:hover { transform: scale(1.15); }
.wcard .rate { font-size: 12px; color: #888; margin-top: 2px; min-height: 16px; }
.ends { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.pcard { width: 172px; height: 256px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
.pcard h4 { margin: 0 0 14px; font: 400 18px var(--f); }
.pcard .ava { width: 140px; height: 140px; font-size: 54px; }
.pcard .nm { margin-top: 16px; font-size: 13px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .none { width: 140px; height: 140px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; }
.stats3 { display: flex; flex-direction: column; gap: 16px; }
.stats3 > * { width: 90px; height: 40px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; gap: 6px; font: 400 18px var(--f); color: #333; border: 0; }
.stats3 .shareb { height: 52px; cursor: pointer; }
.stats3 .shareb:hover { background: #fafafa; }
.dlg-next { margin-top: 18px; text-align: center; color: #666; font-size: 13px; min-height: 18px; }
.dlg-f { display: flex; justify-content: flex-end; gap: 22px; margin: 12px 8px 6px; }
.dlg-f .btn { height: 36px; font-size: 12px; font-weight: 700; }

/* ---------- уведомления ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { max-width: 320px; padding: 12px 16px; background: rgba(45, 45, 45, 0.94); color: #fff; font-size: 14px; border-radius: 2px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); animation: toastin 0.25s; }
.toast.out { opacity: 0; transition: opacity 0.4s; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }

/* ============================================================
   Телефон и узкие окна: вертикальная раскладка, без масштаба
   ============================================================ */
body.m { display: block; overflow: hidden; }
body.m #app { width: 100%; height: 100%; display: flex; flex-direction: column; }
body.m #head { position: relative; width: auto; height: 50px; flex: none; padding: 0 10px 0 6px; }
body.m #bGroup { width: auto; min-width: 0; height: 32px; padding: 0 9px; font-size: 12px; }
body.m #title { font-size: 17px; line-height: 20px; }
body.m #subtitle { display: none; }
body.m .hright { gap: 8px; }
body.m .hright .hbtn { min-width: 0; height: 32px; padding: 0 9px; font-size: 11px; }
body.m #bFull { display: none !important; }
body.m #panel { position: relative; left: auto; top: auto; width: auto; height: auto; flex: 1; min-height: 0; margin: 0; box-shadow: none; display: flex; flex-direction: column; }
body.m #tabs { flex: none; height: 44px; padding-right: 12px; }
body.m .tlist { overflow-x: auto; scrollbar-width: none; }
body.m .tlist::-webkit-scrollbar { display: none; }
body.m #tabs [data-tab] { padding: 0 13px; font-size: 12px; }
body.m .tsound { margin-right: 4px; }
body.m .view { position: relative; top: auto; left: auto; right: auto; bottom: auto; flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
body.m .view .card { position: relative; left: auto; top: auto; width: auto; height: auto; bottom: auto; }
body.m .profile { padding: 18px 16px; }
body.m .pava { width: 96px; }
body.m .ava.big { width: 88px; height: 88px; font-size: 36px; }
body.m .lvbar { width: 96px; margin-top: 18px; }
body.m .lvnext { max-width: 100px; font-size: 10px; line-height: 13px; }
body.m .pinfo { margin-left: 16px; }
body.m .pname { font-size: 18px; }
body.m .pstats { font-size: 14px; margin-top: 6px; }
body.m .pstats div { line-height: 22px; }
body.m .rules { padding: 18px 16px; }
body.m .rcroc { width: 116px; height: 116px; }
body.m .rcroc svg { width: 100px; height: 100px; }
body.m .rules h2 { margin-top: 16px; }
body.m #bPlay { margin: 18px 0 0; width: 100%; height: 44px; font-size: 15px; }
body.m #vGame { padding: 6px; gap: 6px; overflow: hidden; }
body.m .side { order: 1; flex-direction: row; align-items: center; padding: 6px 8px; overflow-x: auto; flex: none; scrollbar-width: none; }
body.m .side::-webkit-scrollbar { display: none; }
body.m .slabel, body.m .sdiv { display: none; }
body.m .prow-wrap, body.m .plist { display: flex; flex: none; min-height: 0; overflow: visible; }
body.m .prow { flex-direction: column; gap: 3px; padding: 2px 5px; min-height: 0; width: 58px; }
body.m .prow .ava { width: 38px; height: 38px; }
body.m .prow .nm { font-size: 10px; max-width: 56px; text-align: center; }
body.m .prow .nm sup { display: none; }
body.m .prow .q { position: absolute; margin: 0; }
body.m .prow.art .ava { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #8bc34a; }
body.m .prow-wrap .empty { display: none; }
body.m .jumpl { flex: none; margin: 0 4px 0 8px; height: 30px; font-size: 10px; padding: 0 8px; }
body.m .jumpl.invite { margin: 0 4px; }
body.m .rlinks { margin-top: 12px; }
body.m .view .cvcard { order: 2; width: 300px; height: 240px; flex: none; align-self: center; } /* размер с пропорцией 5:4 ставит ui.js (fitMobile) */
body.m .cv { left: 0; width: 100%; height: 100%; }
body.m .timer { font-size: 17px; top: 6px; }
body.m .word { font-size: 16px; top: 7px; right: 8px; -webkit-text-stroke-width: 2.5px; }
body.m .word.mask { font-size: 12px; letter-spacing: 2px; top: 9px; -webkit-text-stroke-width: 0; }
body.m .cvacts { left: 8px; top: 9px; }
body.m .chat { display: none; }
body.m .view .mchat { display: flex; order: 4; flex: 1; min-height: 60px; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 8px 10px; overflow-y: auto; }
body.m .mchat .msg { font-size: 14px; line-height: 20px; text-shadow: none; }
body.m .mchat .msg .mk button { width: 22px; height: 18px; }
body.m .mchat .msg .mk svg { width: 17px; height: 17px; }
.mchat { display: none; }
.mchat .msg .mk button { pointer-events: none; }
.mchat.can .msg .mk button { pointer-events: auto; cursor: pointer; }
body.m .bottom { order: 3; height: auto; flex: none; }
body.m .tools { position: relative; inset: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; padding: 8px 10px; align-items: center; }
body.m .curcolor { position: relative; left: auto; top: auto; }
body.m .sliders { position: relative; left: auto; top: auto; grid-template-columns: auto 1fr; row-gap: 6px; column-gap: 8px; }
body.m .sliders label { font-size: 12px; }
body.m .rng { width: 100%; }
body.m .palette { position: relative; left: auto; top: auto; grid-column: 1 / -1; grid-template-columns: repeat(10, 1fr); gap: 4px; order: 5; }
body.m .palette button { width: auto; height: 24px; }
body.m .tbtns { position: relative; left: auto; top: auto; width: auto; gap: 8px; }
body.m .tbtns button { font-size: 12px; }
body.m .guess { position: relative; inset: auto; padding: 8px 10px; gap: 8px; }
body.m .guess input { height: 40px; font-size: 16px; }
body.m .guess .btn { width: auto; padding: 0 14px; height: 40px; }
body.m .gtip { left: 10px; top: -30px; }
body.m .topcard { flex: 1; min-height: 0; }
body.m .tophead { padding: 14px 14px 4px; }
body.m .topnote { padding: 0 14px 8px; }
body.m .trow { padding: 7px 14px; gap: 10px; }
body.m .shopcard, body.m .shopinfo { padding: 16px; }
body.m .packs { gap: 8px; }
body.m .dlg { width: calc(100vw - 16px); max-width: 514px; max-height: calc(100% - 16px); overflow-y: auto; }
body.m .dlg-h { height: 50px; }
body.m .wcard .wd { font-size: 22px; }
body.m .ends { margin-top: 12px; gap: 8px; }
body.m .pcard { width: auto; flex: 1; height: auto; padding: 12px 6px; }
body.m .pcard h4 { font-size: 14px; margin-bottom: 8px; }
body.m .pcard .ava, body.m .pcard .none { width: 72px; height: 72px; font-size: 28px; }
body.m .pcard .none svg { width: 60px; height: 60px; }
body.m .pcard .nm { margin-top: 8px; font-size: 12px; max-width: 100%; }
body.m .stats3 { gap: 8px; }
body.m .stats3 > * { width: 74px; height: 34px; font-size: 15px; }
body.m .stats3 .shareb { height: 40px; }
body.m .dlg-f { flex-direction: column-reverse; gap: 8px; margin: 10px 0 0; }
body.m .dlg-f .btn { width: 100%; height: 42px; }
body.m .toasts { left: 8px; right: 8px; top: 8px; bottom: auto; align-items: stretch; }
body.m .toast { max-width: none; }
