/* Purchase sheet (design/home-redesign/sheet-flow in ms-site): one component, bottom sheet on phones, centred modal on
 * desktop. Colours and sizes are the site's (BRIEF.md): panel #1E1C22, cards #18171C, tiles .08, accent #FF892C/#FFAA63. */
.mps-ov { position: fixed; inset: 0; z-index: 100000; display: flex; justify-content: center; align-items: flex-end;
  background: rgba(20, 16, 11, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; font-family: Inter, sans-serif; color: #fff; }
.mps-ov.open { opacity: 1; visibility: visible; }
/* resets with zero specificity (:where), so the component rules below always win over them; site styles for
   button / a / p / ul inside the sheet are neutralised the same way */
:where(.mps-ov) * { box-sizing: border-box; margin: 0; padding: 0; scrollbar-width: none; letter-spacing: normal; text-transform: none; }
:where(.mps-ov) *::-webkit-scrollbar { display: none; }
:where(.mps-ov) button { font: inherit; color: inherit; background: none; border: 0; line-height: inherit; text-align: inherit; min-height: 0; box-shadow: none; }
:where(.mps-ov) a { color: inherit; text-decoration: none; }
:where(.mps-ov) img { max-width: none; }
/* the site styles b / strong / a by tag (Unbounded, white): inside the sheet they inherit the text around them */
.mps-ov b, .mps-ov strong, .mps-ov em, .mps-ov a { font-family: inherit; font-size: inherit; line-height: inherit; }
.mps-sheet { position: relative; width: 100%; max-height: var(--mps-max, 92dvh); display: flex; flex-direction: column; background: var(--ms-panel);
  border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: env(safe-area-inset-bottom); }
.mps-ov.open .mps-sheet { transform: none; }
.mps-grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); margin: 8px auto 0; flex: none; }
/* the handle is dragged down to close (purchase-sheet.js): a finger-sized area around the 4px bar, and the header too;
   the browser must not scroll the page or pull-to-refresh while they are dragged */
.mps-grab { position: relative; touch-action: none; }
.mps-grab::before { content: ""; position: absolute; inset: -14px -60px -10px; }
@media (max-width: 900px) { .mps-top { touch-action: none; } }
.mps-body { overflow-y: auto; padding: 14px 15px 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.mps-body > *, .mps-info > * { flex-shrink: 0; }
.mps-info { display: none; }
@media (min-width: 901px) {
  .mps-ov { align-items: center; }
  .mps-sheet { width: 900px; max-height: var(--mps-max, 88dvh); border-radius: 16px; transform: translateY(16px) scale(.98);
    display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
  .mps-ov.open .mps-sheet { transform: none; }
  .mps-grab, .mps-more, .mps-body .mps-desc-box { display: none !important; }
  .mps-body { padding: 30px; gap: 14px; max-height: var(--mps-max, 88dvh); }
  .mps-info { display: flex; flex-direction: column; gap: 14px; background: var(--ms-bg); padding: 30px; overflow-y: auto; max-height: var(--mps-max, 88dvh); }
  .mps-pays { display: grid !important; grid-template-columns: 1fr 1fr; }
}
.mps-top { display: flex; align-items: flex-start; gap: 10px; }
.mps-top > div { flex: 1; min-width: 0; }
.mps-step { font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); }
.mps-title { font: 600 18px/24px Unbounded, sans-serif; margin-top: 2px; text-wrap: balance; } /* wraps on 320px phones instead of «…» */
.mps-ib { width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: var(--ms-chip); color: var(--ms-text-3);
  cursor: pointer; display: grid; place-items: center; font-size: 14px; }
.mps-ib:hover { background: var(--ms-btn-grey); }
.mps-bar { display: flex; gap: 4px; height: 2px; }
.mps-bar i { flex: 1; background: var(--ms-accent); }
.mps-bar i.next { background: rgba(var(--ms-accent-rgb), .35); }

.mps-pick { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 8px 17px 8px 12px; background: var(--ms-bg); border-radius: 12px; min-width: 0; }
.mps-pick > img { width: 44px; height: 36px; object-fit: contain; flex: none; }
/* player heads: one look on every page (owner 2026-11-29): the flat face, crisp pixels, rounded corners; size by place */
.ms-head { display: block; flex: none; width: 29px; height: 29px; border-radius: 6px; object-fit: cover; image-rendering: pixelated; }
.mps-pick > img.ava { width: 29px; height: 29px; margin: 0 7px; }
.mps-pt { flex: 1; min-width: 0; }
.mps-pt > b { display: block; font: 600 14px/18px Unbounded, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-pt > span { display: block; font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-pt > span em { font-style: normal; color: var(--ms-text-2); }
.mps-sum { font: 600 12px Unbounded, sans-serif; color: #fff; }
.mps-old { font: 400 12px Inter, sans-serif; color: var(--ms-text-3); text-decoration: line-through 1px; margin-right: 4px; }
.mps-ch { flex: none; border: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); }
.mps-ch::after { content: ""; width: 7px; height: 7px; border-top: 2px solid var(--ms-text-3); border-right: 2px solid var(--ms-text-3); transform: rotate(45deg); }
.mps-pick.tight .mps-ch { font-size: 0; gap: 0; padding: 8px 0 8px 8px; }

/* «Количество» (design/home-redesign/qty-picker): the packs of a product under its card, the cards of step 1 and the
   chosen-chip look of the catalog (.mps-cchip.on). At most three in a row, rows full width: 2 → 2, 3 → 3, 4 → 2 + 2,
   5 → 3 + 2, 6 → 3 + 3 (a 6-column grid, tiles span 2 or 3); five in one row would be 60px tiles on a 320px phone. */
.mps-qty { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 6px; }
.mps-qty > .mps-q { grid-column: span 2; }
.mps-qty.n2 > .mps-q, .mps-qty.n4 > .mps-q, .mps-qty.n5 > .mps-q:nth-child(n + 4) { grid-column: span 3; }
.mps-q { position: relative; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; border-radius: 12px; background: var(--ms-bg); cursor: pointer; min-width: 0; padding: 0 6px; transition: background .15s, box-shadow .15s; }
.mps-q:hover { background: #211f26; }
.mps-q .a { font: 600 13px/16px Unbounded, sans-serif; color: #fff; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mps-q .c { font: 500 12px/14px Inter, sans-serif; color: var(--ms-text-3); white-space: nowrap; }
.mps-q.on { background: var(--ms-accent-tint); box-shadow: inset 0 0 0 1px rgba(var(--ms-accent-rgb), .45); }
.mps-q.on .a { color: var(--ms-accent-text); }
.mps-q.on .c { color: rgba(var(--ms-accent-text-rgb), .8); }
/* «−13 %»: the pack is cheaper per piece than the first one */
.mps-q .d { position: absolute; top: -7px; right: 6px; height: 16px; padding: 0 5px; border-radius: 5px; background: var(--ms-accent); color: #1a120b;
  font: 700 10px/16px Inter, sans-serif; }

.mps-more { border: 0; background: var(--ms-tile); border-radius: 12px; height: 44px; color: var(--ms-text-2); font: 600 13px Inter, sans-serif;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mps-more::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.mps-more.on::after { transform: rotate(-135deg) translateY(-2px); }
.mps-desc-box { display: none; background: var(--ms-bg); border-radius: 12px; padding: 14px 15px; }
.mps-desc-box.on { display: block; }
.mps-desc { font: 500 12px/17px Inter, sans-serif; color: var(--ms-text-3); overflow-wrap: anywhere; }
.mps-desc ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mps-desc li { list-style: none; }
.mps-desc b, .mps-desc strong, .mps-desc span { color: var(--ms-text-2); }
.mps-desc-h { font: 600 12px/16px Inter, sans-serif; color: #fff; margin-bottom: 8px; }
.mps-info .big { display: block; width: 150px; height: 110px; object-fit: contain; margin: 10px auto 4px; image-rendering: pixelated; }
.mps-info .nm { font: 600 18px/24px Unbounded, sans-serif; text-align: center; }
.mps-info .pr { font: 500 12px/17px Inter, sans-serif; color: var(--ms-text-3); text-align: center; }

.mps-fl { font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); padding: 0 2px; margin-bottom: -6px; }
.mps-nick { height: 62px; display: flex; align-items: center; gap: 11px; background: var(--ms-bg); border-radius: 12px; padding: 0 16px; }
.mps-nick:focus-within { outline: 1px solid var(--ms-accent-text); outline-offset: -1px; }
.mps-nick img { transition: opacity .2s; }
/* an empty nick field shows the dimmed head in every form, as checkout does (owner 2026-11-29) */
.mps-nick:has(input:placeholder-shown) img { opacity: .35; }
.mps-nick input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font: 400 16px Inter, sans-serif; color: #fff; }
.mps-nick input::placeholder { color: var(--ms-text-3); opacity: .7; }
.mps-hint { font: 500 12px/17px Inter, sans-serif; color: var(--ms-text-3); padding: 0 2px; min-height: 17px; }
.mps-hint:empty { display: none; }
.mps-hint b { font-weight: 500; color: var(--ms-text-2); }
.mps-hint .ok { color: var(--ms-accent-text); }
.mps-hint.err { color: var(--ms-text-2); }
.mps-spin { display: inline-block; vertical-align: -3px; width: 14px; height: 14px; margin-right: 8px; border-radius: 50%; border: 2px solid rgba(var(--ms-grey-rgb), .25);
  border-top-color: var(--ms-accent-text); animation: mps-sp .7s linear infinite; }
@keyframes mps-sp { to { transform: rotate(360deg); } }
.mps-warn { font: 500 12px/17px Inter, sans-serif; color: var(--ms-text-2); background: var(--ms-tile); border-radius: 12px; padding: 12px 15px; }

.mps-promo-l { align-self: flex-start; border: 0; background: none; color: var(--ms-text-3); font: 500 12px Inter, sans-serif; cursor: pointer; padding: 2px;
  text-decoration: underline 1px rgba(var(--ms-grey-rgb), .4); text-underline-offset: 3px; }
.mps-promo { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 7px 0 15px; background: var(--ms-tile); border-radius: 12px; }
.mps-promo input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: 400 16px Inter, sans-serif; color: #fff; text-transform: uppercase; }
.mps-promo input::placeholder { text-transform: none; color: var(--ms-text-3); opacity: .7; }
.mps-promo.done { color: var(--ms-text-2); font: 500 13px Inter, sans-serif; }
.mps-promo.done b { color: var(--ms-accent-text); font-weight: 600; }

.mps-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap;
  background: var(--ms-buy); color: var(--ms-accent-text); transition: background .15s, opacity .15s; }
.mps-btn:hover { background: rgba(var(--ms-buy-rgb), .26); }
.mps-btn.l { height: 62px; font: 400 16px/20px Unbounded, sans-serif; }
.mps-btn.l b { font-weight: 600; }
/* 320px phones (a 355px layout): a long label - «Добавить сервер в Minecraft», «Add the server to Minecraft» - ran past
   the 16px button; there 14px and no decorative arrow (owner 2026-11-29, «текст не попадает в кнопки») */
@media (max-width: 400px) { .mps-btn.l { font-size: 14px; } .mps-btn.l > svg { display: none; } }
.mps-btn.s { width: auto; height: 38px; padding: 0 14px; font: 600 13px Inter, sans-serif; }
.mps-btn:disabled, .mps-btn.busy { opacity: .45; cursor: not-allowed; background: var(--ms-buy); }
.mps-btn.busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(var(--ms-accent-text-rgb), .3); border-top-color: var(--ms-accent-text); animation: mps-sp .7s linear infinite; }
.mps-legal { font: 400 11px/15px Inter, sans-serif; color: var(--ms-text-3); text-align: center; }
.mps-legal a { color: var(--ms-text-2); text-decoration: underline; text-underline-offset: 2px; }
.mps-err { font: 500 12px/17px Inter, sans-serif; color: var(--ms-text-2); background: var(--ms-error); border-radius: 10px; padding: 10px 12px; }

.mps-total { display: flex; align-items: center; gap: 10px; padding: 12px 15px; background: var(--ms-bg); border-radius: 12px; }
.mps-total img { width: 44px; height: 34px; object-fit: contain; flex: none; }
.mps-total .tx { flex: 1; min-width: 0; }
/* step 2's order line wraps instead of «…»: «ник · сервер · заказ №» is what the player checks before paying */
.mps-total .t { display: block; font: 600 13px/17px Unbounded, sans-serif; overflow-wrap: anywhere; }
.mps-total .s { display: block; font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); margin-top: 2px; overflow-wrap: anywhere; }
.mps-total .nw { white-space: nowrap; } /* «MineScar #1» and «заказ №3101» stay whole when the line wraps */
.mps-total .p { flex: none; font: 600 16px Unbounded, sans-serif; white-space: nowrap; }
.mps-pays { display: flex; flex-direction: column; gap: 8px; }
.mps-pay { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 15px; background: var(--ms-tile); border-radius: 12px; cursor: pointer; border: 0;
  text-align: left; width: 100%; transition: background .15s; min-width: 0; }
.mps-pay:hover { background: rgba(var(--ms-grey-rgb), .11); }
.mps-pay.busy { opacity: .6; pointer-events: none; }
.mps-pay .pi { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; }
.mps-pay .pi img { max-width: 32px; max-height: 32px; }
.mps-pay .tx { min-width: 0; }
.mps-pay .pt { display: block; font: 600 13px/16px Inter, sans-serif; color: #fff; }
/* the method's name and line wrap instead of «…» (desktop's two 202px columns cut «Быстрые платежи СБП»; the
   English «· charged in roubles: N ₽» did not fit 320px phones); one line stays 58px */
.mps-pay .ps { display: block; font: 500 11px/14px Inter, sans-serif; color: var(--ms-text-3); margin-top: 2px; }
/* «Ещё N способов»: a dashed tile, the last item of the list (a phone's column) or its sixth cell (a PC's two columns) */
.mps-pays-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  border: 1px dashed rgba(var(--ms-grey-rgb), .35); background: none; color: var(--ms-text-2); font: 600 12px Inter, sans-serif; transition: color .15s, border-color .15s; }
.mps-pays-more svg { flex: none; }
.mps-pays-more:hover { border-color: rgba(var(--ms-accent-text-rgb), .5); color: var(--ms-accent-text); }
html.mps-lock, html.mps-lock body { overflow: hidden !important; }

/* ---------- result sheet (after the payment page; mockup design/home-redesign/after-pay) ---------- */
.mps-sheet.res { display: flex; flex-direction: column; }
@media (min-width: 901px) { .mps-sheet.res { width: 520px; } }
.mps-lead { font: 500 13px/19px Inter, sans-serif; color: var(--ms-text-3); overflow-wrap: anywhere; }
.mps-lead b { color: var(--ms-text-2); font-weight: 600; }
.mps-state { display: flex; align-items: center; gap: 12px; }
.mps-state .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ms-accent-tint); color: var(--ms-accent-text); }
.mps-state .ic.grey { background: rgba(var(--ms-grey-rgb), .12); color: var(--ms-text-2); }
.mps-state .ic .mps-spin { margin: 0; width: 20px; height: 20px; border-width: 2.5px; }
.mps-wait { height: 4px; border-radius: 2px; background: rgba(var(--ms-grey-rgb), .14); overflow: hidden; position: relative; }
.mps-wait i { position: absolute; top: 0; bottom: 0; width: 35%; background: var(--ms-accent-text); border-radius: 2px; animation: mps-slide 1.4s ease-in-out infinite; }
@keyframes mps-slide { from { left: -35%; } to { left: 100%; } }
.mps-rc { background: var(--ms-bg); border-radius: 12px; padding: 12px 15px; display: flex; flex-direction: column; gap: 8px; }
.mps-rc-h { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.mps-rc-h img { width: 44px; height: 34px; object-fit: contain; flex: none; }
.mps-rc-h .tx { flex: 1; min-width: 0; }
.mps-rc-h .t { display: block; font: 600 14px/18px Unbounded, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-rc-h .s { display: block; font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); margin-top: 1px; }
.mps-rc-h .p { flex: none; font: 600 16px Unbounded, sans-serif; white-space: nowrap; }
.mps-rc-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); min-height: 20px; }
.mps-rc-r > span:last-child { color: var(--ms-text-2); font-weight: 600; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mps-rc-r .st { color: var(--ms-accent-text) !important; }
.mps-cmd { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 8px 8px 15px; background: var(--ms-field); border-radius: 8px; }
.mps-cmd .l { display: block; font: 600 10px Inter, sans-serif; color: var(--ms-text-4); text-transform: uppercase; }
.mps-cmd .v { display: block; font: 600 15px Inter, sans-serif; margin-top: 1px; }
.mps-cmd .d { display: block; font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); margin-top: 1px; }
.mps-mini { flex: none; border: 0; background: rgba(var(--ms-grey-rgb), .12); color: var(--ms-text-3); border-radius: 6px; height: 26px; padding: 0 10px; font: 600 11px Inter, sans-serif; cursor: pointer; }
.mps-mini:hover { color: #fff; }
.mps-give { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 15px; border-radius: 12px; background: var(--ms-bg);
  outline: 1px solid rgba(var(--ms-accent-text-rgb), .28); outline-offset: -1px; }
.mps-give .tx { flex: 1; min-width: 0; }
.mps-give .t { display: block; font: 600 13px/17px Unbounded, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-give .s { display: block; font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-give .s b { color: var(--ms-accent-text); font-weight: 600; }
.mps-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.mps-btn.m { height: 44px; font: 600 13px Inter, sans-serif; }
.mps-btn.g { background: var(--ms-btn-grey); color: var(--ms-text-2); }
.mps-btn.g:hover { background: rgba(var(--ms-grey-rgb), .24); }
.mps-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 100001; background: var(--ms-field); color: #fff; font: 500 13px Inter, sans-serif;
  padding: 12px 16px; border-radius: 10px; opacity: 0; transition: .2s; pointer-events: none; max-width: 340px; text-align: center; }
.mps-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- «Как зайти на сервер» sheet ---------- */
.mps-or { display: flex; align-items: center; gap: 10px; font: 500 12px Inter, sans-serif; color: var(--ms-text-3); }
.mps-or::before, .mps-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .06); }
.mps-pair { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 8px; }
.mps-addr { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; border-radius: 8px; background: var(--ms-field); min-width: 0; }
.mps-addr > span { flex: 1; min-width: 0; }
.mps-addr .l { display: block; font: 600 10px Inter, sans-serif; color: var(--ms-text-4); text-transform: uppercase; }
.mps-addr .v { display: block; font: 600 15px Inter, sans-serif; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-addr.port .v { color: var(--ms-accent-text); }
.mps-addr .mps-mini { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; }
.mps-steps { display: flex; flex-direction: column; gap: 8px; counter-reset: s; }
.mps-steps li { list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--ms-tile);
  font: 500 13px/18px Inter, sans-serif; color: var(--ms-text-3); }
.mps-steps li::before { counter-increment: s; content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--ms-accent-tint); color: var(--ms-accent-text);
  display: grid; place-items: center; font: 600 12px Inter, sans-serif; }
.mps-steps b { color: var(--ms-text-2); font-weight: 600; }
.mps-link { border: 0; background: none; color: var(--ms-accent-text); font: 600 12px Inter, sans-serif; cursor: pointer; padding: 0; }

/* ---------- first screen additions (home-first.js) ---------- */
.fs-proof { display: inline-flex; align-items: center; gap: 8px; margin: 12px auto 0; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--ms-chip);
  font: 600 12px Inter, sans-serif; color: var(--ms-text-2); white-space: nowrap; }
/* The proof line pushed the server block down (58px, 45 on phones) while the characters and the hand that lies over
   the block stayed where they were: they go down with it, as on the page before the line (owner 2026-11-29). «translate»
   adds to the parallax, which moves them with «transform» (main.js). */
.content-block:has(.fs-proof) > :is(.parallax-absolute-image-hand, .parallax-absolute-image-left, .parallax-absolute-image-right) { translate: 0 58px; }
@media (max-width: 900px) {
  .content-block:has(.fs-proof) > :is(.parallax-absolute-image-hand, .parallax-absolute-image-left, .parallax-absolute-image-right) { translate: 0 45px; }
}
.fs-proof .sep { color: var(--ms-text-3); font-weight: 500; }
.fs-proof b { color: var(--ms-accent-text); font-weight: 600; }
.fs-proof .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ms-accent-text); box-shadow: 0 0 0 3px rgba(var(--ms-accent-text-rgb), .18); animation: fs-pulse 2s infinite; }
@keyframes fs-pulse { 50% { box-shadow: 0 0 0 5px rgba(var(--ms-accent-text-rgb), 0); } }
.content-section-top { text-align: center; }
.fs-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; border-radius: 5px; background: var(--ms-tag);
  color: var(--ms-accent-text); font: 600 10px Inter, sans-serif; white-space: nowrap; }
/* «Играть» and «Донат от N ₽»: one pair in every card, the same markup on every width (owner 2026-11-29: no copy for
   phones). Desktop: the card's last row. Phones: a full-width row under the header. */
/* «Играть» as wide as its label, «Донат от N ₽» takes the rest: with 1 : 1.3 the longer English «Donate from 0.70 €»
   filled its button edge to edge on narrow cards (1180 desktop, 320 phones; owner 2026-11-29) */
.fs-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.fs-actions .fs-play { padding: 0 14px; }
.fs-actions button { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; height: 32px; border: 0; border-radius: 8px;
  cursor: pointer; white-space: nowrap; font: 600 13px Inter, sans-serif; transition: background .15s; }
@media (min-width: 901px) { .fs-actions button { height: 38px; } }
.fs-play { background: var(--ms-btn-grey); color: var(--ms-text-2); }
.fs-play:hover { background: rgba(var(--ms-grey-rgb), .24); }
.fs-donate { background: var(--ms-buy); color: var(--ms-accent-text); }
.fs-donate:hover { background: rgba(var(--ms-buy-rgb), .26); }
@media (max-width: 900px) {
  .server-object .fs-actions { grid-column: 1 / -1; margin: 14px -3px 0; }
  .fs-actions button { height: 40px; }
}
/* ---------- «Уже есть привилегия?» (upgrade) ---------- */
.mps-up { background: var(--ms-bg); border-radius: 12px; padding: 12px 15px 15px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mps-up-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mps-up-h > img { width: 36px; height: 36px; object-fit: contain; flex: none; border-radius: 8px; }
.mps-up-h .tx { flex: 1; min-width: 0; }
.mps-up-h .t { display: block; font: 600 14px/18px Unbounded, sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-up-h .m { display: block; font: 500 12px/14px Inter, sans-serif; color: var(--ms-text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-up-h .cur { flex: none; max-width: 45%; text-align: right; font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); white-space: nowrap; }
.mps-up-h .cur b { display: block; font: 600 13px/16px Unbounded, sans-serif; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.mps-lad { display: flex; gap: 3px; height: 6px; }
.mps-lad i { flex: 1; border-radius: 2px; background: rgba(var(--ms-grey-rgb), .18); }
.mps-lad i.own { background: var(--ms-accent); }
.mps-lad i.nx { background: rgba(var(--ms-accent-rgb), .35); }
.mps-lad-cap { display: flex; justify-content: space-between; gap: 10px; font: 500 11px/14px Inter, sans-serif; color: var(--ms-text-3); margin-top: -4px; }
.mps-lad-cap span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mps-next { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px 6px 8px; border-radius: 10px; background: var(--ms-buy); color: var(--ms-accent-text); border: 0; cursor: pointer; text-align: left; width: 100%; transition: background .15s; }
.mps-next:hover { background: rgba(var(--ms-buy-rgb), .24); }
.mps-next > img { width: 44px; height: 34px; object-fit: contain; flex: none; }
.mps-next .tx { flex: 1; min-width: 0; }
.mps-next .t { display: block; font: 600 13px/16px Unbounded, sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-next .s { display: block; font: 500 11px/14px Inter, sans-serif; color: var(--ms-accent-text); margin-top: 2px; }
.mps-next .p { flex: none; text-align: right; font: 600 14px Unbounded, sans-serif; white-space: nowrap; color: #fff; }
.mps-next .p .old { display: block; font: 400 11px/13px Inter, sans-serif; color: var(--ms-text-3); text-decoration: line-through 1px; }
.mps-all { align-self: flex-start; border: 0; background: none; color: var(--ms-text-3); font: 500 12px Inter, sans-serif; cursor: pointer; padding: 2px 0; }
.mps-all:hover { color: var(--ms-text-2); }

/* ---------- giveaway sheet ---------- */
.mps-h3 { font: 600 13px Inter, sans-serif; color: #fff; margin-bottom: -4px; }
.mps-fair { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--ms-tile); font: 500 12px/17px Inter, sans-serif; color: var(--ms-text-3); }
.mps-fair svg { flex: none; color: var(--ms-accent-text); margin-top: 1px; }
.mps-fair b { color: var(--ms-text-2); font-weight: 600; }
.mps-srvs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mps-sv { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 10px; background: var(--ms-tile); font: 600 12px Inter, sans-serif; color: var(--ms-text-3); white-space: nowrap; min-width: 0; }
.mps-sv img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; flex: none; }
.mps-sv span { margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.mps-sv .mps-spin { margin-right: 0; flex: none; }
.mps-sv.yes { background: rgba(var(--ms-accent-text-rgb), .12); color: #fff; }
.mps-sv.yes span { color: var(--ms-accent-text); }
/* 320px phones: the two server cells give their padding, so «участвуешь» fits */
@media (max-width: 380px) { .mps-sv { gap: 6px; padding: 0 8px; } }
.mps-nick .mps-btn.s { flex: none; }
.mps-hint b { color: var(--ms-text-2); font-weight: 600; }
.mps-hint.c { text-align: center; }
.mps-link.c { align-self: center; color: var(--ms-text-3); font-weight: 500; text-decoration: none; }
.mps-link.c:hover { color: var(--ms-text-2); }
.mps-wins { display: flex; flex-direction: column; gap: 6px; }
.mps-win { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; border-radius: 10px; background: var(--ms-bg); min-width: 0; }

.mps-win .tx { flex: 1; min-width: 0; }
.mps-win .n { display: block; font: 600 13px/16px Inter, sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-win .s { display: block; font: 500 11px/14px Inter, sans-serif; color: var(--ms-text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-win .d { flex: none; text-align: right; font: 500 11px/14px Inter, sans-serif; color: var(--ms-text-3); white-space: nowrap; }
.mps-win .d b { display: block; color: var(--ms-accent-text); font-weight: 600; }
/* «Победители» (mockup winners-sheet): the player's own wins, «Скоро итоги», results by day with the prize picture,
   «Показать ещё», the way into the list */
.mps-wme { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ms-buy); outline: 1px solid rgba(var(--ms-accent-text-rgb), .28); outline-offset: -1px; }
.mps-wme img { width: 34px; height: 34px; }
.mps-wme .t { font: 600 13px/17px Inter, sans-serif; color: #fff; }
.mps-wme .s { font: 500 12px/16px Inter, sans-serif; color: var(--ms-accent-text); margin-top: 2px; }
.mps-soon { display: flex; flex-direction: column; gap: 6px; }
.mps-sn { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 12px 6px 8px; border-radius: 12px; background: var(--ms-bg); border: 0; width: 100%; text-align: left; cursor: pointer; color: #fff; }
.mps-sn:hover { background: #1b1a20; }
.mps-sn img { width: 44px; height: 40px; object-fit: contain; image-rendering: pixelated; flex: none; }
.mps-sn .tx { flex: 1; min-width: 0; }
.mps-sn .n { display: block; font: 600 13px/16px Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-sn .s { display: block; font: 500 11px/14px Inter, sans-serif; color: var(--ms-text-3); margin-top: 2px; }
.mps-sn .s b { color: var(--ms-accent-text); font-weight: 600; }
.mps-sn .ar { color: var(--ms-text-3); font-size: 16px; }
.mps-day { font: 600 11px Inter, sans-serif; color: var(--ms-text-3); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 -6px; }
.mps-win .pz { width: 34px; height: 30px; object-fit: contain; image-rendering: pixelated; flex: none; }
.mps-win.me { outline: 1px solid rgba(var(--ms-accent-text-rgb), .4); outline-offset: -1px; }
.mps-win .n i { font-style: normal; color: var(--ms-accent-text); }
.mps-wlist { display: flex; flex-direction: column; gap: 12px; transition: opacity .15s; }
.mps-wlist > * { flex-shrink: 0; }
.mps-wlist.dim { opacity: .5; pointer-events: none; }
.mps-wmore { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; border: 0; border-radius: 10px; background: var(--ms-chip); color: var(--ms-text-2); font: 600 13px Inter, sans-serif; cursor: pointer; }
.mps-wmore:disabled { opacity: .6; cursor: default; }
.mps-wempty { padding: 22px 14px; border-radius: 12px; background: var(--ms-tile); text-align: center; font: 500 12px/17px Inter, sans-serif; color: var(--ms-text-3); }
.mps-wempty b { display: block; color: #fff; font: 600 13px Inter, sans-serif; margin-bottom: 4px; }
.mps-wcta { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--ms-bg); }
.mps-wcta .tx { flex: 1; min-width: 0; font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); }
.mps-wcta .tx b { display: block; color: #fff; font: 600 13px Inter, sans-serif; margin-bottom: 2px; }
.mps-wcta .tx em { font-style: normal; color: var(--ms-accent-text); font-weight: 600; }
.mps-wcta .mps-btn.s { flex: none; }

/* ---------- help sheet ---------- */
.mps-topic { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 17px 8px 12px; border-radius: 12px; background: var(--ms-bg); border: 0; width: 100%; text-align: left; cursor: pointer; color: #fff; transition: background .15s; flex: none; }
.mps-topic:hover { background: #1c1b21; }
.mps-topic .ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(var(--ms-accent-rgb), .11); color: var(--ms-accent-text); display: grid; place-items: center; }
.mps-topic.urgent .ic { background: rgba(var(--ms-accent-rgb), .2); }
.mps-topic .tx, .mps-lk .tx, .mps-sup .tx { flex: 1; min-width: 0; }
/* a topic's title and line wrap instead of «…» (the English ones did not fit 320px phones) */
.mps-topic .t { display: block; font: 600 13px/17px Unbounded, sans-serif; }
.mps-topic .s { display: block; font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); margin-top: 2px; }
.mps-topic .chev, .mps-lk .chev { flex: none; width: 8px; height: 8px; border-top: 2px solid var(--ms-text-3); border-right: 2px solid var(--ms-text-3); transform: rotate(45deg); margin-right: 2px; font-size: 0; }
.mps-sup { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 10px 10px 15px; border-radius: 12px; background: var(--ms-tile); flex: none; }
.mps-sup .t { display: block; font: 600 13px/17px Inter, sans-serif; color: #fff; }
.mps-sup .s { display: flex; align-items: center; gap: 6px; font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); margin-top: 2px; }
.mps-sup .s i { width: 7px; height: 7px; border-radius: 50%; background: var(--ms-text-3); flex: none; }
.mps-sup .s.on { color: var(--ms-text-2); }
.mps-sup .s.on i { background: var(--ms-accent-text); box-shadow: 0 0 0 3px rgba(var(--ms-accent-text-rgb), .18); }
.mps-vk { flex: none; height: 40px; padding: 0 14px; border-radius: 8px; background: var(--ms-buy); color: var(--ms-accent-text); font: 600 13px Inter, sans-serif; display: flex; align-items: center; white-space: nowrap; text-decoration: none; }
.mps-vk:hover { background: rgba(var(--ms-buy-rgb), .26); color: var(--ms-accent-text); }
.mps-rules { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--ms-tile); margin: 0; }
.mps-rules li { list-style: none; display: flex; gap: 8px; font: 500 12px/17px Inter, sans-serif; color: var(--ms-text-3); }
.mps-rules li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ms-accent-text); margin-top: 6px; }
.mps-rules b { color: var(--ms-text-2); font-weight: 600; }
.mps-fcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mps-nick.mps-field { height: 52px; padding: 0 14px; gap: 10px; }
.mps-nick.mps-field img { width: 26px; height: 26px; }
.mps-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mps-chip { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--ms-chip); color: var(--ms-text-3); font: 600 12px Inter, sans-serif; cursor: pointer; }
.mps-chip.on { background: var(--ms-accent-tint); color: var(--ms-accent-text); }
.mps-note { font: 500 12px/17px Inter, sans-serif; color: var(--ms-text-2); background: rgba(var(--ms-accent-rgb), .08); border-radius: 10px; padding: 10px 12px; }
.mps-note button { color: var(--ms-accent-text); font: inherit; font-weight: 600; border: 0; background: none; cursor: pointer; padding: 0; }
.mps-links { display: flex; flex-direction: column; gap: 8px; }
.mps-lk { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 17px 8px 14px; border-radius: 12px; background: var(--ms-bg); color: #fff; font: 600 13px Inter, sans-serif; border: 0; width: 100%; text-align: left; cursor: pointer; text-decoration: none; }
.mps-lk:hover { color: #fff; background: #1c1b21; }
.mps-lk small { display: block; font: 500 12px Inter, sans-serif; color: var(--ms-text-3); margin-top: 2px; }
.mps-ok { display: flex; align-items: center; gap: 12px; }
.mps-ok .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--ms-accent-tint); color: var(--ms-accent-text); display: grid; place-items: center; }
button.mps-sv { border: 0; cursor: pointer; font: 600 12px Inter, sans-serif; text-align: left; }
.mps-sv.pick { outline: 1px solid var(--ms-accent-text); outline-offset: -1px; }

/* ---------- «Попросить оплатить» ---------- */
.mps-share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.mps-share .mps-btn { padding: 0 8px; }
.mps-share-note { font: 500 11px/15px Inter, sans-serif; color: var(--ms-text-3); text-align: center; margin-top: -4px; }

/* ---------- the server's catalog «Покупка доната» ---------- */
.mps-acc { color: var(--ms-accent-text); }
.mps-hello { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 15px; background: var(--ms-bg); border-radius: 12px; flex: none; }

.mps-hello p { font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-hello b { font: 600 13px/16px Unbounded, sans-serif; color: #fff; display: block; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.mps-hello p span { color: var(--ms-text-2); }
.mps-hello button { border: 0; background: none; padding: 0; color: var(--ms-text-3); font: 500 12px/16px Inter, sans-serif; cursor: pointer; text-decoration: underline 1px rgba(var(--ms-grey-rgb), .4); text-underline-offset: 3px; }
.mps-hello button:hover { color: var(--ms-text-2); }
.mps-upline { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 15px; border: 0; border-radius: 12px; background: var(--ms-tile); font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); cursor: pointer; text-align: left; width: 100%; flex: none; }
.mps-upline b { color: var(--ms-accent-text); font-weight: 600; }
.mps-upline .ar { font-size: 16px; }
/* the answer to the question, by the arrow: «Доплата от 70 ₽», or the next privilege's real difference */
.mps-upline .hint { margin-left: auto; white-space: nowrap; }
.mps-upline .hint + .ar { margin-left: -2px; }
.mps-upline .hint .v { color: #fff; font-weight: 600; }
.mps-upline .hint .old { margin-right: 4px; color: var(--ms-text-3); font-weight: 400; text-decoration: line-through 1px; }
.mps-upline:hover { background: rgba(var(--ms-grey-rgb), .11); }
.mps-lbl { font: 500 12px/16px Inter, sans-serif; color: var(--ms-text-3); margin-bottom: -6px; }
.mps-cchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -15px; padding: 0 15px; flex: none; }
.mps-cchips::-webkit-scrollbar { display: none; }
.mps-cchips.dragging, .mps-cchips.dragging .mps-cchip { cursor: grabbing; user-select: none; }
.mps-cchip img { -webkit-user-drag: none; user-select: none; }
.mps-cchip { flex: none; height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--ms-chip); color: var(--ms-text-3); font: 600 12px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.mps-cchip img { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; }
.mps-cchip.on { background: var(--ms-accent-tint); color: var(--ms-accent-text); }
.mps-cchip .m1 { color: var(--ms-mode-1); } .mps-cchip .m2 { color: var(--ms-mode-2); } .mps-cchip .m3 { color: var(--ms-mode-3); } .mps-cchip .m4 { color: var(--ms-mode-4); }
.mps-cchip.on span { color: inherit; }
.mps-rows { display: grid; grid-template-columns: 1fr; gap: 10px; }
/* another category in the catalog: its items fade in (purchase-sheet.js), with the sheet sliding to its new height */
.mps-rows.mps-in > * { animation: mps-rows-in .22s ease both; }
@keyframes mps-rows-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mps-rows.mps-in > * { animation: none; } }
.mps-row { height: 52px; display: flex; align-items: center; padding: 6px 12px 6px 6px; background: var(--ms-bg); border-radius: 12px; cursor: pointer; border: 0; text-align: left; width: 100%; min-width: 0; color: #fff; transition: background .15s; }
.mps-row:hover:not(:disabled) { background: #211f26; }
.mps-row .ico { width: 60px; display: flex; justify-content: center; flex: none; }
.mps-row .ico img { width: 52px; height: 38px; object-fit: contain; }
.mps-row .tx { margin-left: 8px; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mps-row .n { font: 500 13px/16px Unbounded, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-row .s { font: 500 11px/14px Inter, sans-serif; color: var(--ms-accent-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mps-row.dim { opacity: .45; cursor: default; }
.mps-row.dim .s { color: var(--ms-text-3); }
.mps-row .p { padding-left: 10px; font: 600 13px/16px Unbounded, sans-serif; white-space: nowrap; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mps-row .p .old { font: 400 11px/14px Inter, sans-serif; color: var(--ms-text-3); text-decoration: line-through 1px; }
/* a product with packs («Количество»): the amounts under the name in grey, «от 320 ₽» on one line */
.mps-row .s.v { color: var(--ms-text-3); }
.mps-row .p.from { flex-direction: row; align-items: baseline; gap: 4px; }
.mps-row .p small { font: 500 12px Inter, sans-serif; color: var(--ms-text-3); }

