/* Prototype interactions: cart, toast, spin, clickable cards */

body.ny-v4 .priv-card,
body.ny-v4 .gift {
  cursor: pointer;
}

body.ny-v4 .priv-card .btn-buy,
body.ny-v4 .gift .btn-buy {
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(200, 130, 255, 0.28));
  background: rgba(18, 9, 36, 0.7);
  color: #F7F1FF;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.cart-btn svg { width: 18px; height: 18px; }
.cart-btn:hover {
  border-color: rgba(223, 92, 255, 0.55);
  box-shadow: 0 0 16px rgba(155, 47, 232, 0.28);
}
.cart-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #DF5CFF, #9B2FE8);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 10px rgba(155, 47, 232, 0.55);
}
.cart-btn.is-pulse { animation: cart-pulse 0.45s ease; }
@keyframes cart-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.cart-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
}
.cart-layer[hidden] { display: none !important; }
.cart-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 16, 0.62);
  backdrop-filter: blur(6px);
}
.cart-panel {
  position: relative;
  z-index: 2;
  width: 400px;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #241446, #140a28 40%, #0e0818);
  border-left: 1px solid rgba(200, 130, 255, 0.35);
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(155, 47, 232, 0.12);
  padding: 22px 20px 18px;
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cart-head h2 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #F7F1FF;
}
.cart-list {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-empty {
  margin: 24px 0;
  color: #C4B0E0;
  text-align: center;
  font-size: 14px;
}
/* cart-item layout is defined later in this file */
.cart-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(200, 130, 255, 0.18);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-weight: 700;
  color: #C4B0E0;
}
.cart-total strong {
  font-family: Unbounded, sans-serif;
  font-size: 20px;
  color: #F7F1FF;
}
.cart-foot .btn-buy {
  width: 100%;
  justify-content: center;
  height: 46px;
}
.cart-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: #C4B0E0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translateX(-50%);
  max-width: 92vw;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #3A1670, #1B0E32);
  border: 1px solid rgba(223, 92, 255, 0.45);
  color: #F7F1FF;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(155, 47, 232, 0.35);
  pointer-events: none;
}
.toast[hidden] { display: none !important; }

#btn-spin.is-spinning,
#btn-spin:disabled {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

.shop-card.is-hidden,
.deal-card.is-hidden { display: none !important; }

body.cart-open { overflow: hidden; }

/* 1) Privilege modal: clip content to rounded corners */
body.ny-v4 .priv-modal.modal-card,
body.ny-v4 .priv-modal.disco-stage {
  overflow: hidden;
  border-radius: 24px;
}
body.ny-v4 .disco-stage .stage-hero {
  border-radius: 24px 24px 0 0;
}

/* 2) Promo card: hug content, no leftover height */
body.ny-v4 .pay-grid {
  align-items: start;
  align-content: start;
  grid-auto-rows: min-content;
}
body.ny-v4 .pay-grid .box-promo {
  align-self: start;
  height: fit-content;
  min-height: 0;
  padding: 16px 18px 14px;
}
body.ny-v4 .pay-grid .box-promo h3 { margin-bottom: 4px; }
body.ny-v4 .pay-grid .box-promo .hint { margin-bottom: 10px; }
body.ny-v4 .promo-note { margin-top: 8px; margin-bottom: 0; }
body.ny-v4 .pay-grid .box:not(.box-promo) { padding: 20px 22px 18px; }

/* 3) Top-up Пополнить: padding, min-width, gap from the input */
body.ny-v4 .sum-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
body.ny-v4 .sum-row .field {
  min-width: 0;
  flex: 1;
}
body.ny-v4 .sum-row .btn-steam,
body.ny-v4 #btn-topup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 44px;
  min-width: 148px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}

/* 7) Deal countdown: number + unit on one line */
body.ny-v4 .t-segs { gap: 8px; }
body.ny-v4 .t-col { display: none; }
body.ny-v4 .t-seg {
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-width: 64px;
  padding: 10px 12px 9px;
}
body.ny-v4 .t-seg b { font-size: 20px; line-height: 1; }
body.ny-v4 .t-seg small {
  margin-top: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  color: #C4B0E0;
}

/* 9) Privilege card hover */
body.ny-v4 .priv-card,
body.ny-v4 .gift {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.ny-v4 .priv-card:hover,
body.ny-v4 .gift:hover {
  transform: translateY(-6px);
  border-color: rgba(223, 92, 255, 0.7);
  box-shadow:
    0 20px 44px rgba(155, 47, 232, 0.38),
    0 0 28px rgba(223, 92, 255, 0.28);
  z-index: 2;
}

/* 6) Prize tooltip only on hover, with glow */
body.ny-v4 .prize-grid:has(.has-open-tip),
body.ny-v4 .prize-grid {
  padding-top: 12px;
  overflow: visible;
}
body.ny-v4 .prize-tile {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
body.ny-v4 .prize-tile .prize-tip {
  display: none;
  pointer-events: none;
}
body.ny-v4 .prize-tile:hover,
body.ny-v4 .prize-tile:focus-within {
  transform: translateY(-5px);
  z-index: 8;
}
body.ny-v4 .prize-tile.r-max:hover,
body.ny-v4 .prize-tile.r-max:focus-within,
body.ny-v4 .prize-tile.r-legendary:hover,
body.ny-v4 .prize-tile.r-legendary:focus-within {
  border-color: rgba(255, 180, 74, 0.9);
  box-shadow:
    0 14px 32px rgba(255, 180, 74, 0.38),
    0 0 26px rgba(255, 198, 90, 0.5);
}
body.ny-v4 .prize-tile.r-epic:hover,
body.ny-v4 .prize-tile.r-epic:focus-within {
  border-color: rgba(255, 106, 216, 0.9);
  box-shadow:
    0 14px 32px rgba(223, 92, 255, 0.4),
    0 0 26px rgba(255, 106, 216, 0.5);
}
body.ny-v4 .prize-tile.r-rare:hover,
body.ny-v4 .prize-tile.r-rare:focus-within {
  border-color: rgba(155, 47, 232, 0.95);
  box-shadow:
    0 14px 32px rgba(155, 47, 232, 0.42),
    0 0 26px rgba(155, 47, 232, 0.55);
}
body.ny-v4 .prize-tile.r-common:hover,
body.ny-v4 .prize-tile.r-common:focus-within {
  border-color: rgba(180, 180, 190, 0.75);
  box-shadow:
    0 14px 28px rgba(140, 140, 150, 0.28),
    0 0 18px rgba(200, 200, 210, 0.3);
}
body.ny-v4 .prize-tile:hover .prize-tip,
body.ny-v4 .prize-tile:focus-within .prize-tip {
  display: block;
}

/* Hero kicker: longer title may wrap */
body.ny-v4 .kicker {
  height: auto;
  max-width: 920px;
  padding: 7px 16px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.08em;
}
body.ny-v4 .cd-label {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.35;
  text-wrap: balance;
}

/* 5) Win qty badge */
.win-illu-item { position: relative; }
.win-qty-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #DF5CFF, #9B2FE8);
  color: #F7F1FF;
  font-family: Unbounded, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(155, 47, 232, 0.5);
}
.win-qty-badge[hidden] { display: none !important; }

/* Cart drawer: richer items, split totals, two actions */
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 12px 12px 10px;
  border-radius: 14px;
  background: rgba(16, 10, 32, 0.85);
  border: 1px solid rgba(200, 130, 255, 0.18);
}
.cart-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 36%, rgba(120, 80, 180, 0.35), #12091e 70%);
  border: 1px solid rgba(200, 130, 255, 0.16);
}
.cart-info { min-width: 0; }
.cart-info h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: #F7F1FF;
}
.cart-info .cart-meta {
  display: block;
  font-size: 12px;
  color: #C4B0E0;
  margin-bottom: 6px;
}
.cart-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(200, 130, 255, 0.28);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(12, 6, 24, 0.55);
}
.cart-stepper button {
  width: 28px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #F7F1FF;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.cart-stepper button:hover { background: rgba(155, 47, 232, 0.28); }
.cart-stepper .cart-qty {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  color: #F7F1FF;
}
.cart-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cart-remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(200, 130, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #F7F1FF;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.cart-remove:hover {
  background: rgba(223, 92, 255, 0.22);
  border-color: rgba(223, 92, 255, 0.5);
}
.cart-item .cart-price {
  font-family: Unbounded, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #F7F1FF;
  white-space: nowrap;
}
.cart-totals { margin-bottom: 12px; }
.cart-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  color: #C4B0E0;
  margin-bottom: 4px;
}
.cart-total-line strong {
  font-family: Unbounded, sans-serif;
  font-size: 18px;
  color: #F7F1FF;
}
.cart-total-exp { justify-content: flex-end; }
.cart-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}
.btn-cart-clear {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(200, 130, 255, 0.3);
  background: rgba(18, 9, 36, 0.7);
  color: #F7F1FF;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.btn-cart-clear:hover { border-color: rgba(223, 92, 255, 0.55); }
.cart-actions .btn-buy { width: 100%; justify-content: center; height: 46px; }
.btn-cart-clear:disabled,
.cart-actions .btn-buy:disabled {
  opacity: 0.45;
  cursor: default;
}


/* Header nav: highlight only on hover, no default active plate */
body.ny-v4 .nav a {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
body.ny-v4 .nav a.is-active {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}
body.ny-v4 .nav a:hover {
  color: var(--text);
  background: rgba(155, 47, 232, 0.2);
  box-shadow: inset 0 0 0 1px rgba(200, 130, 255, 0.28);
}

body.ny-v4 .winter-copy .lead {
  max-width: 760px;
  line-height: 1.5;
}

/* Docs pages: rules + ban-list */
body.page-docs .header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(18, 9, 36, 0.96), rgba(14, 8, 28, 0.92));
  border-bottom: 1px solid rgba(200, 130, 255, 0.18);
  backdrop-filter: blur(14px);
}
body.page-docs .docs-main {
  width: var(--wrap);
  margin: 0 auto;
  padding: 36px 0 64px;
  min-height: calc(100vh - 220px);
}
body.page-docs .docs-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(223, 92, 255, 0.12);
  border: 1px dashed rgba(223, 92, 255, 0.55);
  color: #F7F1FF;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
}
body.page-docs .docs-banner i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #DF5CFF, #9B2FE8);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.page-docs .docs-head h1 {
  font-family: Unbounded, sans-serif;
  font-size: 36px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: #F7F1FF;
}
body.page-docs .docs-head p {
  color: #C4B0E0;
  max-width: 720px;
  margin: 0 0 22px;
}
body.page-docs .docs-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
body.page-docs .docs-search {
  flex: 1;
  min-width: 240px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 6, 24, 0.55);
  color: var(--text);
  font: 14px Manrope, sans-serif;
  outline: none;
}
body.page-docs .docs-search:focus {
  border-color: rgba(223, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(155, 47, 232, 0.2);
}
body.page-docs .docs-filters {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: rgba(27, 14, 50, 0.8);
  border: 1px solid var(--line);
  border-radius: 13px;
}
body.page-docs .docs-filter {
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: #C4B0E0;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
body.page-docs .docs-filter.is-on {
  background: rgba(155, 47, 232, 0.28);
  color: #F7F1FF;
  box-shadow: inset 0 0 0 1px rgba(200, 130, 255, 0.28);
}

.rules-section {
  margin-bottom: 16px;
  padding: 16px 18px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(36, 20, 66, 0.7), rgba(16, 10, 32, 0.9));
  border: 1px solid rgba(200, 130, 255, 0.18);
}
.rules-section[hidden],
.rule-item[hidden],
.ban-row[hidden] { display: none !important; }
.rules-section h2 {
  font-family: Unbounded, sans-serif;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #F7F1FF;
}
.rule-item {
  border-top: 1px solid rgba(200, 130, 255, 0.12);
  padding: 4px 0;
}
.rule-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 4px;
  font-weight: 700;
  color: #F7F1FF;
}
.rule-item summary::-webkit-details-marker { display: none; }
.rule-item summary .rule-num {
  flex-shrink: 0;
  min-width: 36px;
  color: #C882FF;
  font-family: Unbounded, sans-serif;
  font-size: 13px;
}
.rule-item summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #C4B0E0;
  border-bottom: 2px solid #C4B0E0;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.rule-item[open] summary::after { transform: rotate(225deg); }
.rule-item .rule-body {
  padding: 0 4px 12px 46px;
  color: #C4B0E0;
  font-size: 14px;
  line-height: 1.55;
}
.rules-empty {
  text-align: center;
  color: #C4B0E0;
  padding: 24px;
}

.bans-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(200, 130, 255, 0.18);
  background: linear-gradient(180deg, rgba(36, 20, 66, 0.55), rgba(16, 10, 32, 0.92));
}
.bans-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.bans-table th,
.bans-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
}
.bans-table th {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #C4B0E0;
  font-weight: 800;
  background: rgba(12, 6, 24, 0.55);
  border-bottom: 1px solid rgba(200, 130, 255, 0.18);
  white-space: nowrap;
}
.bans-table td {
  border-top: 1px solid rgba(200, 130, 255, 0.1);
  color: #F7F1FF;
  vertical-align: middle;
}
.bans-table tbody tr:hover td {
  background: rgba(155, 47, 232, 0.1);
}
.ban-nick { font-weight: 800; }
.ban-sid { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: #C4B0E0; }
.ban-status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ban-status.is-on {
  background: rgba(223, 80, 80, 0.2);
  color: #ffb0b0;
}
.ban-status.is-off {
  background: rgba(255, 255, 255, 0.06);
  color: #C4B0E0;
}

/* Top-up: editable amount + ₽ suffix */
body.ny-v4 .sum-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: block;
}
body.ny-v4 .sum-field .field {
  width: 100%;
  padding-right: 42px;
}
body.ny-v4 .sum-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #C4B0E0;
  font-weight: 800;
  font-size: 14px;
  pointer-events: none;
}
body.ny-v4 .sum-hint {
  margin: 8px 0 0;
  color: #ff9aa8;
  font-size: 13px;
  font-weight: 700;
}
body.ny-v4 .sum-hint[hidden] { display: none !important; }

/* Dock wipe + connect popover */
body.ny-v4 .dock-wipe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
body.ny-v4 .dock-wipe .wipe-type {
  font-weight: 800;
  color: #F7F1FF;
}
body.ny-v4 .dock-connect {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
body.ny-v4 .connect-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 280px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2a1648, #140a28);
  border: 1px solid rgba(200, 130, 255, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(155, 47, 232, 0.2);
}
body.ny-v4 .connect-pop[hidden] { display: none !important; }
body.ny-v4 .connect-ip {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #F7F1FF;
  margin-bottom: 10px;
  word-break: break-all;
}
body.ny-v4 .btn-copy-cmd {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(180deg, #C45CFF, #9B2FE8);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
body.ny-v4 .connect-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #C4B0E0;
  font-weight: 500;
  line-height: 1.4;
}

/* Footer socials: optical center + hover glow */
body.ny-v4 .soc {
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
body.ny-v4 .soc svg {
  display: block;
  flex-shrink: 0;
}
body.ny-v4 .soc-ico-vk {
  transform: translateX(-1.2px);
}
body.ny-v4 .soc:hover {
  background: rgba(155, 47, 232, 0.36);
  border-color: rgba(223, 92, 255, 0.75);
  box-shadow: 0 0 18px rgba(155, 47, 232, 0.5), 0 0 0 1px rgba(223, 92, 255, 0.28);
  color: #F7F1FF;
}


/* Dock online: one baseline, vertically centered */
body.ny-v4 .dock-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}
body.ny-v4 .dock-stat .pulse {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  display: block;
  position: relative;
  top: 0;
  margin: 0;
}
body.ny-v4 .dock-online {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  font-family: Manrope, sans-serif;
}
body.ny-v4 .dock-stat-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}
body.ny-v4 .dock-stat strong {
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1;
}
body.ny-v4 .dock-stat-max {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
}

/* Prize grid heading instead of kind pills */
body.ny-v4 .luck-prizes-head {
  text-align: center;
  margin: 8px 0 14px;
}
body.ny-v4 .luck-prizes-head h3 {
  margin: 0 0 6px;
  font-family: Unbounded, sans-serif;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #F7F1FF;
}
body.ny-v4 .luck-prizes-hint {
  margin: 0;
  color: #C4B0E0;
  font-size: 13.5px;
  font-weight: 500;
}

/* Floating cart button */
.cart-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(223, 92, 255, 0.55);
  background: linear-gradient(180deg, #C45CFF, #9B2FE8);
  color: #F7F1FF;
  box-shadow: 0 10px 28px rgba(155, 47, 232, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cart-fab[hidden] { display: none !important; }
.cart-fab svg {
  width: 26px;
  height: 26px;
  display: block;
}
.cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #FFB44A;
  color: #1a1008;
  font-weight: 800;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.cart-fab.is-pulse {
  animation: cart-fab-pulse 0.75s ease-out 2;
}
@keyframes cart-fab-pulse {
  0% { transform: scale(1); box-shadow: 0 10px 28px rgba(155, 47, 232, 0.5), 0 0 0 0 rgba(223, 92, 255, 0.55); }
  50% { transform: scale(1.1); box-shadow: 0 10px 28px rgba(155, 47, 232, 0.5), 0 0 0 14px rgba(223, 92, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 10px 28px rgba(155, 47, 232, 0.5), 0 0 0 0 rgba(223, 92, 255, 0); }
}
body.cart-open .cart-fab { opacity: 0.35; pointer-events: none; }

/* Hero kicker: highlight quoted update name */
body.ny-v4 .kicker-hl,
body.ny-v4 .kicker em.kicker-hl {
  font-style: normal;
  font-weight: 800;
  color: #fff;
  background: none;
  text-shadow:
    0 0 6px #DF5CFF,
    0 0 14px rgba(223, 92, 255, 0.9),
    0 0 24px rgba(223, 92, 255, 0.55);
}

/* Promo nav target */
body.ny-v4 #promo {
  scroll-margin-top: 28px;
}
body.ny-v4 #promo-input:focus {
  border-color: rgba(223, 92, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(155, 47, 232, 0.28);
}

/* Privilege card / modal: two actions */
body.ny-v4 .gift-body {
  padding: 20px 16px 16px 18px;
}
body.ny-v4 .priv-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}
body.ny-v4 .priv-actions > button {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 42px;
  padding: 0 8px;
  border-radius: 12px;
  font-family: Manrope, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
body.ny-v4 .btn-buy-now {
  background: rgba(155, 47, 232, 0.08);
  border: 1px solid rgba(223, 92, 255, 0.7);
  color: #F7F1FF;
  box-shadow: 0 0 12px rgba(155, 47, 232, 0.2);
}
body.ny-v4 .btn-buy-now:hover {
  border-color: #DF5CFF;
  background: rgba(155, 47, 232, 0.2);
  box-shadow: 0 0 16px rgba(223, 92, 255, 0.4);
  color: #fff;
}
body.ny-v4 .btn-add-cart {
  border: 0;
  background: linear-gradient(180deg, #C45CFF 0%, #9B2FE8 100%);
  color: #F7F1FF;
  box-shadow: 0 8px 20px rgba(155, 47, 232, 0.35);
}
body.ny-v4 .btn-add-cart:hover {
  box-shadow: 0 8px 24px rgba(223, 92, 255, 0.5);
}
body.ny-v4 .ny-showcase .priv-actions > button,
body.ny-v4 .priv-card .priv-actions > button {
  font-size: 12px;
  padding: 0 6px;
  height: 40px;
}
body.ny-v4 .stage-buy .priv-actions {
  flex: 1 1 280px;
  min-width: 260px;
  margin-top: 0;
}
body.ny-v4 .stage-buy .priv-actions > button {
  height: 44px;
  font-size: 13px;
  padding: 0 12px;
}

/* Roulette section anchor */
body.ny-v4 #roulette {
  scroll-margin-top: 86px;
}

.cart-btn svg, .cart-fab svg { overflow: visible; flex-shrink: 0; }

/* Steam login in the header */
body.ny-v4 a.btn-login,
body.ny-v4 .btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
a.user-chip {
  text-decoration: none;
  color: inherit;
}
.user-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Simple inner pages: profile, pay result, admin */
.simple-page {
  min-height: 70vh;
  padding: 114px 0 80px;
}
.simple-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(18, 9, 36, 0.72);
  border: 1px solid rgba(200, 130, 255, 0.28);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.simple-card h1 {
  font-family: Unbounded, sans-serif;
  font-size: 32px;
  margin: 0 0 12px;
  color: #F7F1FF;
}
.simple-card p {
  margin: 0 0 16px;
  color: rgba(247, 241, 255, 0.82);
  line-height: 1.55;
}
.simple-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.simple-card .btn-login { height: 44px; padding: 0 18px; }
.profile-grid { display: grid; gap: 16px; margin-top: 24px; }
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(200, 130, 255, 0.16);
  color: #F7F1FF;
}
.profile-row span { color: rgba(247, 241, 255, 0.7); }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 114px 20px 80px; }
.admin-wrap h1 { font-family: Unbounded, sans-serif; color: #F7F1FF; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.admin-tabs button {
  background: rgba(27, 14, 50, 0.8);
  border: 1px solid rgba(200, 130, 255, 0.25);
  color: #F7F1FF;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}
.admin-tabs button.is-on { border-color: #C882FF; background: rgba(155, 47, 232, 0.35); }
.admin-panel { display: none; }
.admin-panel.is-on { display: block; }
.admin-table { width: 100%; border-collapse: collapse; color: #F7F1FF; font-size: 14px; }
.admin-table th, .admin-table td {
  border-bottom: 1px solid rgba(200, 130, 255, 0.16);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.admin-form, .admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.admin-form input, .admin-filters input, .admin-form select, .admin-form textarea {
  background: #1B0E32;
  border: 1px solid rgba(200, 130, 255, 0.3);
  color: #F7F1FF;
  border-radius: 8px;
  padding: 8px 10px;
}
.admin-note { color: rgba(247, 241, 255, 0.75); }

/* hidden must win over flex/grid display on header chips */
.header-actions [hidden] {
  display: none !important;
}

/* ===== Logged-in header: fit 360-1920, profile dropdown, top-up modal ===== */
.header,
.header-inner {
  overflow: visible;
}
.header-inner {
  width: 100%;
  max-width: var(--wrap);
  box-sizing: border-box;
  padding: 0 20px;
  gap: 16px;
  min-width: 0;
}
.header-actions {
  flex-shrink: 0;
  min-width: 0;
  gap: 8px;
}
.nav {
  min-width: 0;
}
#hdr-rub.balance {
  padding-right: 4px;
  gap: 6px;
}
.bal-topup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  height: 22px;
  padding: 0 8px;
  margin-left: 2px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #DF5CFF, #9B2FE8);
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(155, 47, 232, 0.45);
  white-space: nowrap;
  vertical-align: middle;
}
.bal-topup-text,
.bal-topup-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 1;
  height: 1em;
  transform: translateY(-0.5px);
}
.bal-topup-plus { display: none; font-size: 13px; font-weight: 700; }
.bal-topup:hover,
.bal-topup:focus-visible {
  box-shadow: 0 0 14px rgba(223, 92, 255, 0.75);
  filter: brightness(1.08);
  outline: none;
}
@media (max-width: 1280px) {
  .bal-topup {
    width: 22px;
    height: 22px;
    padding: 0;
  }
  .bal-topup-text { display: none; }
  .bal-topup-plus { display: flex; }
}
.hdr-label {
  margin-right: 2px;
}
.user-chip .user-name {
  display: none !important;
}
body.ny-v4 .user-chip,
.user-chip,
a.user-chip {
  width: 36px;
  height: 36px;
  padding: 0 !important;
  gap: 0;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}
body.ny-v4 .user-ava,
.user-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.user-drop-head {
  padding: 10px 12px 8px;
  margin: 0 0 4px;
  border-bottom: 1px solid rgba(200, 130, 255, 0.22);
}
.user-drop-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #F7F1FF;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}
.user-menu {
  position: relative;
  flex-shrink: 0;
}
.user-menu[hidden] {
  display: none !important;
}
.user-dropdown {
  position: fixed;
  z-index: 120;
  min-width: 200px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(18, 9, 36, 0.96);
  border: 1px solid rgba(200, 130, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(155, 47, 232, 0.18);
  backdrop-filter: blur(16px);
  transform-origin: top right;
  animation: user-drop-in 0.16s ease-out;
}
.user-dropdown[hidden] {
  display: none !important;
}
@keyframes user-drop-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.user-drop-item {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #F7F1FF;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.user-drop-item[hidden] { display: none !important; }
.user-drop-item:hover,
.user-drop-item:focus-visible {
  background: rgba(155, 47, 232, 0.22);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid var(--line, rgba(200, 130, 255, 0.28));
  background: rgba(18, 9, 36, 0.7);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #F7F1FF;
}

.topup-layer {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.topup-layer[hidden] { display: none !important; }
.topup-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 16, 0.72);
  backdrop-filter: blur(8px);
}
.topup-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 28px 26px 24px;
  border-radius: 22px;
  background: rgba(18, 9, 36, 0.96);
  border: 1px solid rgba(200, 130, 255, 0.32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: #F7F1FF;
}
.topup-card h2 {
  font-family: Unbounded, sans-serif;
  font-size: 22px;
  margin: 0 0 6px;
}
.topup-card .hint {
  color: rgba(247, 241, 255, 0.7);
  font-size: 14px;
  margin: 0 0 16px;
}
.topup-card .bonuses { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.topup-card .presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.topup-card .preset {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 130, 255, 0.28);
  background: rgba(18, 9, 36, 0.7);
  color: #F7F1FF;
  font-weight: 700;
  cursor: pointer;
}
.topup-card .preset.is-active {
  border-color: rgba(223, 92, 255, 0.7);
  background: rgba(155, 47, 232, 0.28);
  box-shadow: 0 0 14px rgba(155, 47, 232, 0.35);
}
.topup-card .sum-row { display: flex; gap: 10px; align-items: stretch; }
.topup-card .sum-field { position: relative; flex: 1; }
.topup-card .sum-field .field,
.topup-card .field {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 36px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(200, 130, 255, 0.28);
  background: rgba(10, 6, 22, 0.7);
  color: #F7F1FF;
  font: inherit;
  font-weight: 700;
}
.topup-card .sum-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(247, 241, 255, 0.7);
  font-weight: 700;
}
.topup-card .topup-promo {
  display: block;
  margin: 12px 0 0;
}
.topup-card .topup-promo .field { padding-right: 14px; font-weight: 600; }
.topup-card .sum-hint { color: #ff8a8a; font-size: 13px; margin: 8px 0 0; }
.topup-card .sum-hint[hidden] { display: none !important; }
.topup-card .credit { display: block; margin-top: 12px; color: rgba(247, 241, 255, 0.75); }
.topup-card .credit strong { color: #F7F1FF; font-family: Unbounded, sans-serif; }
.topup-card .credit .plus { color: #7cffc0; }
.topup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(247, 241, 255, 0.08);
  color: #F7F1FF;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.ny-v4 .dock-stat.is-offline .pulse {
  background: #7a7288;
  box-shadow: none;
  animation: none;
  opacity: 0.7;
}
body.ny-v4 .dock-online.is-offline .dock-stat-max { display: none; }
body.ny-v4 .dock-online.is-offline strong { color: rgba(247, 241, 255, 0.7); font-weight: 700; }

@media (max-width: 1280px) {
  .header-inner { gap: 10px; padding: 0 16px; }
  body.ny-v4 .nav a,
  .nav a { padding: 8px 8px; font-size: 13px; }
  .hdr-label,
  .cart-label { display: none; }
  .cart-btn { padding: 0 10px; }
  .user-name { max-width: 110px; }
}
@media (max-width: 1100px) {
  .user-name { display: none; }
  body.ny-v4 .user-chip,
  .user-chip { padding: 0 6px; }
  .header-actions { gap: 6px; }
  .balance { padding: 0 10px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(18, 9, 36, 0.96);
    border: 1px solid rgba(200, 130, 255, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    z-index: 110;
  }
  .header.is-nav-open .nav { display: flex; }
  body.ny-v4 .nav a,
  .nav a { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .logo { font-size: 16px; }
  .logo-img { height: 32px; }
  .header-inner { gap: 8px; padding: 0 10px; }
  #hdr-exp .exp-mark { display: none; }
  .balance { height: 34px; padding: 0 8px; font-size: 12px; }
  .cart-btn, .nav-toggle { height: 34px; }
  body.ny-v4 .user-chip, .user-chip, a.user-chip,
  body.ny-v4 .user-ava, .user-ava { width: 34px; height: 34px; }
}


/* Unlock the old 1440px min-width so the header can shrink with the viewport */
html, body, .page-winter, .page-docs {
  max-width: 100%;
}
body {
  min-width: 0 !important;
}
.wrap,
.header-inner,
.footer-inner,
.winter-inner,
body.page-docs .docs-main,
.dock {
  width: 100%;
  max-width: var(--wrap);
  box-sizing: border-box;
}
@media (max-width: 1279px) {
  .wrap,
  .header-inner,
  .footer-inner,
  .winter-inner,
  body.page-docs .docs-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* Inner pages sit under the absolute 74px header; keep ~40px gap */
@media (max-width: 480px) {
  .simple-page { padding-top: 114px; }
  .admin-wrap { padding-top: 114px; padding-left: 16px; padding-right: 16px; }
}

body.ny-v4 .dj-deck .bind-card.has-trade {
  grid-template-areas:
    "ico name plus"
    "trade trade trade"
    "btn btn btn";
}
.bind-trade {
  grid-area: trade;
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(200, 130, 255, 0.35);
  background: rgba(18, 9, 36, 0.72);
  color: #F7F1FF;
  padding: 0 10px;
  font-family: Manrope, sans-serif;
  font-size: 12.5px;
}
.bind-trade::placeholder { color: rgba(247, 241, 255, 0.45); }
.bind-trade:disabled { opacity: 0.7; }
.btn-bind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-bind.is-checking,
.btn-bind.is-done {
  cursor: default;
  pointer-events: none;
}
.btn-bind.is-done {
  background: linear-gradient(180deg, #5ad38a, #2f9e5f) !important;
  box-shadow: 0 8px 20px rgba(47, 158, 95, 0.35) !important;
}
.btn-bind .bind-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(247, 241, 255, 0.28);
  border-top-color: #F7F1FF;
  border-radius: 50%;
  animation: bind-spin 0.7s linear infinite;
  flex-shrink: 0;
}
.btn-bind .bind-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
@keyframes bind-spin {
  to { transform: rotate(360deg); }
}

.admin-pool {
  max-height: 280px;
  overflow: auto;
  border: 1px solid rgba(200, 130, 255, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 12px 0;
}
.admin-pool label,
.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #F7F1FF;
  padding: 4px 0;
}
#deal-current, #deal-history { color: #F7F1FF; }
#deal-pin-picks { display: flex; flex-wrap: wrap; gap: 8px; }
#deal-pin-picks select {
  min-width: 200px;
  background: rgba(27, 14, 50, 0.8);
  color: #F7F1FF;
  border: 1px solid rgba(200, 130, 255, 0.25);
  border-radius: 10px;
  padding: 8px;
}
.luck-how a, .luck-faq a { color: #C882FF; text-decoration: underline; }


/* Category chips stay clickable after the row is rebuilt from the API */
.cat-row { position: relative; z-index: 2; }
.cat-chip { cursor: pointer; position: relative; z-index: 2; }

/* Balance pills: even padding, Пополнить not flush to the rim, even height */
#hdr-rub.balance,
#hdr-exp.balance,
.balance {
  box-sizing: border-box;
  height: 38px;
  padding: 4px 8px 4px 12px;
  gap: 8px;
}
#hdr-exp.balance {
  padding: 4px 12px;
}
#hdr-rub.balance { padding-right: 8px; }
.bal-topup {
  height: 28px;
  padding: 0 10px;
  margin-left: 0;
}
@media (max-width: 1280px) {
  .bal-topup {
    width: 28px;
    height: 28px;
    padding: 0;
  }
}
@media (max-width: 1100px) {
  #hdr-rub.balance,
  #hdr-exp.balance,
  .balance { padding: 4px 8px 4px 10px; }
  #hdr-exp.balance { padding: 4px 10px; }
}
@media (max-width: 480px) {
  #hdr-rub.balance,
  #hdr-exp.balance,
  .balance { height: 34px; padding: 3px 8px; font-size: 12px; }
  .bal-topup { height: 26px; }
  @media (max-width: 1280px) {
    .bal-topup { width: 26px; height: 26px; }
  }
}

/* Shared hover: exact privilege «Купить в 1 клик» / «Добавить в корзину» */
body.ny-v4 .btn-buy-now:hover,
body.ny-v4 .btn-buy-now:focus-visible,
.btn-apply:hover,
.btn-apply:focus-visible {
  border-color: #DF5CFF;
  background: rgba(155, 47, 232, 0.2);
  box-shadow: 0 0 16px rgba(223, 92, 255, 0.4);
  color: #fff;
}
body.ny-v4 .btn-add-cart:hover,
body.ny-v4 .btn-add-cart:focus-visible,
body.ny-v4 .shop-card .btn-buy:hover,
body.ny-v4 .shop-card .btn-buy:focus-visible,
body.ny-v4 .deal-card .btn-buy:hover,
body.ny-v4 .deal-card .btn-buy:focus-visible,
body.ny-v4 #btn-topup:hover,
body.ny-v4 #btn-topup:focus-visible,
#btn-profile-topup:hover,
#btn-profile-topup:focus-visible {
  box-shadow: 0 8px 24px rgba(223, 92, 255, 0.5);
}
body.ny-v4 .dj-pad:hover,
body.ny-v4 .dj-pad:focus-visible,
body.ny-v4 #btn-spin:hover,
body.ny-v4 #btn-spin:focus-visible {
  box-shadow:
    0 0 0 2px rgba(247, 241, 255, 0.18),
    0 8px 24px rgba(223, 92, 255, 0.5),
    0 0 40px rgba(223, 92, 255, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

/* Active ruble discount: header badge, toast, struck prices */
.hdr-discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #DF5CFF, #9B2FE8);
  color: #fff;
  font-family: Unbounded, inherit, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(223, 92, 255, 0.55);
}
.hdr-discount-badge[hidden] { display: none !important; }
@media (max-width: 480px) {
  .hdr-discount-badge { height: 22px; padding: 0 6px; font-size: 10px; }
}

.promo-status {
  margin: 10px 0 0;
  color: #F7F1FF;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.promo-status[hidden] { display: none !important; }

.cart-discount { color: #DF5CFF; }
.cart-discount strong { color: #DF5CFF; font-size: 15px; }

.price-was {
  margin-right: 8px;
  color: rgba(196, 176, 224, 0.9);
  font-weight: 700;
  font-size: 0.82em;
  text-decoration: line-through;
  opacity: 0.8;
  white-space: nowrap;
}
.price-now { white-space: nowrap; }
.is-discounted .price-now { color: #F7F1FF; }

body.ny-v4 .priv-card .price-lg.is-discounted,
body.ny-v4 .stage-buy .price-lg.is-discounted,
body.ny-v4 .shop-price .price-rub.is-discounted {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 2px;
}

.discount-toast {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 160;
  width: min(360px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 16px 42px 16px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(58, 22, 112, 0.98), rgba(27, 14, 50, 0.98));
  border: 1px solid rgba(223, 92, 255, 0.55);
  color: #F7F1FF;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 28px rgba(223, 92, 255, 0.45);
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.discount-toast.is-on {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.discount-toast[hidden] { display: none !important; }
.discount-toast-title {
  font-family: Unbounded, inherit, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 6px;
}
.discount-toast-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #C4B0E0;
}
.discount-toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #F7F1FF;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.discount-toast-close:hover,
.discount-toast-close:focus-visible {
  background: rgba(223, 92, 255, 0.2);
  outline: none;
}
@media (max-width: 860px) {
  .discount-toast {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 88px;
  }
}

.credit .credit-pay { font-weight: 700; color: #F7F1FF; }
.credit .credit-total {
  font-family: Unbounded, inherit, sans-serif;
  font-weight: 800;
  font-size: 1.08em;
  color: #F7F1FF;
  letter-spacing: -0.02em;
}
.credit .plus { color: #7cffc0; font-weight: 800; }
body.ny-v4 .credit .plus,
.topup-card .credit .plus { color: #7cffc0; }

.profile-discord {
  margin: 24px 0 8px;
  max-width: 360px;
}

/* header top-up caps */
.bal-topup-text{text-transform:uppercase;letter-spacing:0.04em;}

/* hide other currency even on discounted cards */
body.ny-v4 .catalog.currency-exp .price-rub,
body.ny-v4 .catalog.currency-exp .price-rub.is-discounted,
body.ny-v4 .catalog.currency-rub .price-exp{display:none !important;}

/* Per-purchase give amount on shop / deal cards */
body.ny-v4 .shop-card-art,
body.ny-v4 .deal-art {
  position: relative;
}
body.ny-v4 .shop-qty-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #DF5CFF, #9B2FE8);
  color: #F7F1FF;
  font-family: Unbounded, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(155, 47, 232, 0.5);
  pointer-events: none;
}

/* hide static placeholders until live data loads */
body.ny-v4 #deal-grid:not(.is-ready),
body.ny-v4 .deal-timer:not(.is-ready),
body.ny-v4 #items:not(.is-ready) .shop-card{visibility:hidden;}
#deal-grid,#items .shop-card{transition:opacity .2s;}

/* Rules page: warning, scale, notes, punishments */
body.page-docs .docs-updated {
  margin: 0 0 10px !important;
  color: #E8A6FF;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rules-warning {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(223, 92, 255, 0.14);
  border: 1px solid rgba(223, 92, 255, 0.45);
  color: #F7F1FF;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.4;
  box-sizing: border-box;
}
.rules-intro {
  margin: 0 0 22px;
  max-width: 760px;
  color: #C4B0E0;
  font-size: 15px;
  line-height: 1.55;
}
.rules-intro p { margin: 0 0 10px; }
.rules-intro p:last-child { margin-bottom: 0; }
.rules-scale {
  margin: 0 0 22px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(42, 22, 78, 0.85), rgba(16, 10, 32, 0.94));
  border: 1px solid rgba(223, 92, 255, 0.32);
  box-sizing: border-box;
}
.rules-scale h2 {
  font-family: Unbounded, sans-serif;
  font-size: 16px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #F7F1FF;
}
.rules-scale ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.rules-scale li {
  color: #C4B0E0;
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(12, 6, 24, 0.45);
  box-sizing: border-box;
}
.rules-scale li strong { color: #F7F1FF; font-weight: 800; }
.rule-item .rule-body a {
  color: #E8A6FF;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rule-punish {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 10px 0 0;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(223, 92, 255, 0.16);
  border: 1px solid rgba(223, 92, 255, 0.35);
  color: #F7F1FF;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
}
.rules-note {
  margin: 8px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(200, 130, 255, 0.08);
  border: 1px solid rgba(200, 130, 255, 0.22);
  color: #C4B0E0;
  font-size: 14px;
  line-height: 1.55;
  box-sizing: border-box;
}
.rules-note strong { color: #F7F1FF; }
@media (max-width: 640px) {
  .rule-item .rule-body { padding-left: 4px; }
  .rule-punish { width: auto; }
}

.legal-body {
  color: #C4B0E0;
  font-size: 15px;
  line-height: 1.65;
}
.legal-body p { margin: 0 0 10px; }
.legal-body p:last-child { margin-bottom: 8px; }
.legal-body ol,
.legal-body ul { margin: 0 0 10px; padding-left: 1.2em; }
.legal-body li { margin: 0 0 6px; }
.legal-body a { color: #E8A6FF; }
.pay-legal {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #C4B0E0;
  max-width: 520px;
}
.pay-legal a { color: #E8A6FF; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 70;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(58, 22, 112, 0.98), rgba(27, 14, 50, 0.98));
  border: 1px solid rgba(255, 180, 74, 0.45);
  color: #F7F1FF;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(155, 47, 232, 0.25);
}
.cookie-banner-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #C4B0E0;
}
.cookie-banner-text a {
  color: #E8A6FF;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-btn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFC56A, #FFB44A);
  color: #1A1020;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.cookie-banner-btn:hover,
.cookie-banner-btn:focus-visible {
  filter: brightness(1.06);
  outline: none;
}
html.cookie-banner-on .cart-fab,
html.cookie-banner-on .discount-toast {
  bottom: calc(32px + env(safe-area-inset-bottom, 0px) + var(--pr-cookie-offset, 0px));
}
html.cookie-banner-on .toast {
  bottom: calc(32px + env(safe-area-inset-bottom, 0px) + var(--pr-cookie-offset, 0px));
}
@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-banner-btn { width: 100%; }
}


.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}
.cookie-banner-btn-needed {
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(232, 166, 255, 0.55);
  background: transparent;
  color: #F7F1FF;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.cookie-banner-btn-needed:hover,
.cookie-banner-btn-needed:focus-visible {
  background: rgba(232, 166, 255, 0.12);
  outline: none;
}
@media (max-width: 640px) {
  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-banner-btn-needed { width: 100%; }
}

/* News */
.news-list {
  display: grid;
  gap: 16px;
}
.news-card {
  margin: 0;
  border-radius: 16px;
  background: rgba(200, 130, 255, 0.08);
  border: 1px solid rgba(200, 130, 255, 0.22);
  overflow: hidden;
}
.news-card-link {
  display: block;
  padding: 18px 18px 16px;
  color: inherit;
  text-decoration: none;
}
.news-card-link:hover .news-card-title { color: #FFC56A; }
.news-card-cover {
  margin: 0 0 14px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 200px;
  background: #140a28;
  border: 1px solid rgba(200, 130, 255, 0.22);
}
.news-card-cover img,
.news-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: cover;
  object-position: center;
}
.news-card-date,
.news-date {
  display: block;
  margin: 0 0 8px;
  color: #FFB44A;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.news-card-title {
  margin: 0 0 8px;
  color: #F7F1FF;
  font-size: 22px;
  line-height: 1.3;
}
.news-card-excerpt {
  margin: 0;
  color: #C4B0E0;
  font-size: 15px;
  line-height: 1.55;
}
.news-cover {
  margin: 0 0 18px;
  max-width: 100%;
  max-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  background: #140a28;
  border: 1px solid rgba(200, 130, 255, 0.22);
  aspect-ratio: 16 / 9;
}

body.page-docs.page-news .docs-main {
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
}
.news-article { max-width: 720px; margin: 0 auto; }
.news-list { display: flex; flex-direction: column; gap: 22px; }
.news-card-link { display: block; color: inherit; text-decoration: none; }
.news-card-link:hover .news-card-title { color: #E8A6FF; }
.news-body {
  margin-top: 8px;
  color: #E8DCF6;
  font-size: 18px;
  line-height: 1.7;
}
.news-body p { margin: 0 0 1em; }
.news-body p:last-child { margin-bottom: 0; }
.news-body h2,
.news-body h3 {
  margin: 1.3em 0 0.5em;
  color: #F7F1FF;
  font-family: Unbounded, Manrope, sans-serif;
  font-weight: 800;
  line-height: 1.25;
}
.news-body h2 { font-size: 1.35em; }
.news-body h3 { font-size: 1.15em; }
.news-body a { color: #E8A6FF; }
.news-body blockquote {
  margin: 1em 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid rgba(223, 92, 255, 0.7);
  color: #D4C4EA;
}
.news-body ul,
.news-body ol { margin: 0 0 1em; padding-left: 1.3em; }
.news-body li { margin: 0 0 0.35em; }
.news-body figure,
.news-body .news-figure { margin: 20px 0; }
.news-body figcaption,
.news-body .news-caption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #B9A4D4;
  text-align: center;
}
.news-body img,
.news-body video,
.news-body .news-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  background: #140a28;
}
.news-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #140a28;
}
.news-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.h1-seo {
  display: block;
  margin-top: 8px;
  font-size: 0.36em;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #C4B0E0;
}
.seo-about {
  margin: 28px auto 0;
  padding: 0 20px 28px;
  max-width: 920px;
  box-sizing: border-box;
  color: #8E7AA8;
  font-size: 14px;
  line-height: 1.65;
}
.seo-about p { margin: 0 0 10px; }
.seo-about p:last-child { margin-bottom: 0; }
.seo-about a { color: #C4B0E0; }

/* PR mark next to the PartyRust wordmark */
.logo-img {
  display: block;
  height: 42px;
  width: auto;
  flex-shrink: 0;
}
.footer-brand .logo-img {
  height: 36px;
}
@media (max-width: 480px) {
  .logo-img { height: 32px; }
}


/* Narrow screens: header, countdown, no horizontal overflow */
@media (max-width: 900px) {
  .wipe-steps,
  .ny-showcase,
  body.ny-v4 .ny-showcase,
  .dock,
  .plaza,
  body.ny-v3 .plaza {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .wipe-steps {
    grid-template-columns: 1fr;
  }
  .ny-showcase,
  body.ny-v4 .ny-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .tree-wrap,
  body.ny-v3 .tree-wrap,
  body.ny-v4 .tree-wrap {
    width: min(460px, 100%);
    max-width: 100%;
    height: auto;
    aspect-ratio: 460 / 520;
  }
  .dock {
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 0;
  }
  .dock-ip {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .dock-ip .ip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.ny-v4 .dock-connect {
    margin-left: 0;
  }
  .gift-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    box-sizing: border-box;
  }
  .gift {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    box-sizing: border-box;
  }
  .gift-art { border-radius: 22px 22px 0 0; }
}

@media (max-width: 700px) {
  .winter-copy {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 2px;
  }
  .winter-copy h1 {
    font-size: clamp(30px, 11.4vw, 56px);
    max-width: 100%;
  }
  .winter-copy .lead,
  body.ny-v4 .winter-copy .lead {
    max-width: 100%;
    font-size: 14px;
    padding: 0 2px;
  }
  body.ny-v4 .kicker {
    max-width: 100%;
    box-sizing: border-box;
  }
  .countdown {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 8px 10px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 16px;
  }
  .countdown .cd-label,
  body.ny-v4 .cd-label {
    font-size: 11px;
    letter-spacing: 0.03em;
    white-space: normal;
    text-wrap: balance;
    max-width: 100%;
    padding: 0 2px;
    margin-bottom: 8px;
    line-height: 1.3;
  }
  .cd-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 4px;
    min-width: 0;
  }
  .cd-box {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: auto;
    min-height: 58px;
    padding: 6px 2px 5px;
    border-radius: 12px;
  }
  .cd-box b { font-size: 22px; }
  .cd-box span {
    font-size: 8px;
    letter-spacing: 0.06em;
    margin-top: 2px;
  }
  .cd-colon {
    font-size: 18px;
    margin-bottom: 8px;
    flex-shrink: 0;
  }
  .garland-mid {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
  .plaza,
  .ny-lineup {
    width: 100%;
    max-width: 100%;
  }
  .ny-showcase,
  body.ny-v4 .ny-showcase {
    grid-template-columns: 1fr;
  }
  body.ny-v4 .btn-spin-lg {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
  }
  body.ny-v4 .stage-buy .priv-actions {
    min-width: 0;
    flex-basis: 100%;
  }
  body.page-docs .docs-search {
    min-width: 0;
  }
  .simple-card {
    padding: 28px 18px;
    margin-left: 16px;
    margin-right: 16px;
  }
  .timeline {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    box-sizing: border-box;
  }
  .timeline::before { display: none; }
  .tl { padding: 0 8px; max-width: 100%; box-sizing: border-box; }
  .page-winter,
  .page-docs,
  .simple-page {
    overflow-x: hidden;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  /* Short Steam label so logo, wordmark, burger and cart all fit */
  .header-actions a.btn-login,
  header a.btn-login {
    font-size: 0 !important;
    padding: 0 11px;
    height: 34px;
    min-width: 0;
    flex-shrink: 0;
  }
  .header-actions a.btn-login::after,
  header a.btn-login::after {
    content: "Войти";
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
  }
  /* Do not shrink the compact login on in-page buttons outside the header */
  main a.btn-login,
  .simple-card a.btn-login,
  .simple-actions a.btn-login {
    font-size: 13px !important;
    height: auto;
    min-height: 44px;
    padding: 0 18px;
    flex-shrink: 1;
  }
  main a.btn-login::after,
  .simple-card a.btn-login::after,
  .simple-actions a.btn-login::after {
    content: none;
  }
}

.header-actions .cart-btn,
header .cart-btn,
header .nav-toggle {
  flex-shrink: 0;
}

@media (max-width: 400px) {
  .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .countdown { padding: 10px 6px 8px; }
  .cd-row { gap: 3px; }
  .cd-box { min-height: 54px; padding: 5px 1px 4px; }
  .cd-box b { font-size: 20px; }
  .cd-colon { font-size: 16px; }
  .countdown .cd-label,
  body.ny-v4 .cd-label { font-size: 10px; letter-spacing: 0.02em; }
}
