/* «Искры» ✦: nick looks, the shop window, the gift shelf and the gift card in a chat (assets/olone-sparks.js).
   Owner, 2026-11-19: in the site's own night-blue, calm, no blurry glows — flat surfaces and thin outlines
   in a clear colour. Rarity: common silver-blue, rare gold, epic violet, legendary orange. */

:root {
  --sp-r-common: #9fb3d9;
  --sp-r-rare: #e7b04a;
  --sp-r-epic: #a585ff;
  --sp-r-legendary: #ff8a4c;
}

/* ---------- nick looks (everywhere a name has data-sparks-user) — these effects are what people buy ---------- */
.olx-nick {
  --nick-from: #facc15;
  --nick-to: #f472b6;
}
.olx-nick--color {
  color: var(--nick-from) !important;
}
.olx-nick--gradient,
.olx-nick--shimmer,
.olx-nick--sparkles {
  background: linear-gradient(90deg, var(--nick-from), var(--nick-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
.olx-nick--glow {
  color: var(--nick-from) !important;
  animation: olx-nick-glow 2.4s ease-in-out infinite;
}
@keyframes olx-nick-glow {
  0%, 100% { text-shadow: 0 0 2px color-mix(in srgb, var(--nick-from) 50%, transparent); }
  50% { text-shadow: 0 0 8px var(--nick-from); }
}
.olx-nick--shimmer {
  background: linear-gradient(90deg, var(--nick-from), var(--nick-to), #ffffff, var(--nick-to), var(--nick-from));
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: olx-nick-flow 3.2s linear infinite;
}
@keyframes olx-nick-flow {
  from { background-position: 0% 50%; }
  to { background-position: 250% 50%; }
}
/* The little sparks sit inside the name's own padding, so names that cut long text do not clip them. */
.olx-nick--sparkles {
  position: relative;
  display: inline-block;
  padding: 0 0.7em;
  background-size: 200% 100%;
  animation: olx-nick-flow 4s linear infinite;
}
.olx-nick--sparkles::before,
.olx-nick--sparkles::after {
  content: "✦";
  position: absolute;
  font-size: 0.72em;
  line-height: 1;
  color: var(--nick-from);
  -webkit-text-fill-color: var(--nick-from);
  animation: olx-nick-twinkle 1.8s ease-in-out infinite;
  pointer-events: none;
}
.olx-nick--sparkles::before {
  left: 0;
  top: 0.05em;
}
.olx-nick--sparkles::after {
  right: 0;
  bottom: 0.1em;
  color: var(--nick-to);
  -webkit-text-fill-color: var(--nick-to);
  animation-delay: 0.9s;
}
@keyframes olx-nick-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.65) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .olx-nick--glow,
  .olx-nick--shimmer,
  .olx-nick--sparkles,
  .olx-nick--sparkles::before,
  .olx-nick--sparkles::after {
    animation: none !important;
  }
}

/* The prefix: a word in a thin outline of its rarity's colour. Unlike OLONE's own filled marks. */
.olx-nick-prefix {
  --pf: var(--sp-r-common);
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 0.45em;
  padding: 0.08em 0.6em;
  border: 1px solid var(--pf);
  border-radius: 999px;
  font-size: 0.68em;
  font-weight: 700;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #eef1ff;
  -webkit-text-fill-color: #eef1ff;
  background: rgba(10, 14, 36, 0.6);
  white-space: nowrap;
  vertical-align: 0.12em;
}
.olx-nick-prefix--rare { --pf: var(--sp-r-rare); }
.olx-nick-prefix--epic { --pf: var(--sp-r-epic); }
.olx-nick-prefix--legendary { --pf: var(--sp-r-legendary); }

/* In the profile header the prefix and the name may share a line or wrap; the name never turns into «…». */
.olx-pb__name:has(.olx-nick-prefix),
.olx-pb__name:has(.olx-nick) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 2px;
  overflow: visible;
}
.olx-pb__name .olx-pb__nick {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.olx-pb__name .olx-nick-prefix {
  font-size: 11px;
  vertical-align: 0;
}

/* ---------- shop window ---------- */
.olx-sp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: grid;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(4, 6, 16, 0.6);
}
.olx-sp-overlay[hidden] {
  display: none !important;
}
.olx-sp {
  --sp-bg: #10152f;
  --sp-surface: rgba(255, 255, 255, 0.035);
  --sp-surface-hover: rgba(255, 255, 255, 0.06);
  --sp-field: rgba(4, 7, 22, 0.55);
  --sp-line: rgba(255, 255, 255, 0.09);
  --sp-line-strong: rgba(255, 255, 255, 0.2);
  --sp-text: #eef1ff;
  --sp-muted: #98a1c4;
  --sp-gold: #f2c14e;
  /* the sparks themselves: lavender like the owner's spark picture, never yellow */
  --sp-spark: #c4b5ff;
  --sp-accent: #5b8cff;
  --sp-ok: #4ade9b;
  width: min(720px, 100%);
  max-height: min(860px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  color: var(--sp-text);
  background: var(--sp-bg);
  border: 1px solid var(--sp-line-strong);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-size: 14px;
}
.olx-sp__head,
.olx-sp__for,
.olx-sp__tabs {
  flex: 0 0 auto;
}
.olx-sp__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px;
}
.olx-sp__title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.olx-sp__title b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.olx-sp__logo {
  display: inline-flex;
  flex: 0 0 auto;
}
.olx-sp-logo {
  width: 40px;
  height: 40px;
  margin: -4px;
  object-fit: contain;
}
.olx-sp-coin {
  width: 20px;
  height: 20px;
  margin: -3px 0;
  object-fit: contain;
  flex: 0 0 auto;
}
.olx-sp__balance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--sp-line-strong);
  border-radius: 999px;
  background: var(--sp-surface);
  color: var(--sp-text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.olx-sp__balance:hover {
  border-color: rgba(255, 255, 255, 0.32);
}
.olx-sp__balance b {
  font-weight: 800;
}
.olx-sp__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--sp-line);
  border-radius: 50%;
  background: transparent;
  color: var(--sp-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.olx-sp__close:hover {
  background: var(--sp-surface-hover);
}
.olx-sp__for {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 20px 10px;
  padding: 9px 14px;
  border: 1px solid var(--sp-line-strong);
  border-radius: 12px;
  font-size: 14px;
}
.olx-sp__for[hidden] {
  display: none;
}
.olx-sp__tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid var(--sp-line);
  overflow-x: auto;
}
.olx-sp__tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: -1px;
  padding: 11px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--sp-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.olx-sp__tab svg {
  width: 17px;
  height: 17px;
}
.olx-sp__tab:hover {
  color: var(--sp-text);
}
.olx-sp__tab.is-on {
  color: var(--sp-text);
  border-bottom-color: var(--sp-accent);
}
.olx-sp__body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}
.olx-sp-empty {
  padding: 30px 0;
  text-align: center;
  color: var(--sp-muted);
}
.olx-sp-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--sp-muted);
}
.olx-sp-note--warn {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--sp-gold) 45%, transparent);
  border-radius: 10px;
  color: var(--sp-gold);
}
.olx-sp-link {
  border: 0;
  background: none;
  padding: 0;
  color: #9db7ff;
  font: inherit;
  cursor: pointer;
}
.olx-sp-link:hover {
  text-decoration: underline;
}
.olx-sp-price {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  color: var(--sp-spark);
  font-weight: 700;
  white-space: nowrap;
}
.olx-sp-star {
  width: 0.85em;
  height: 0.85em;
  flex: 0 0 auto;
  color: currentColor;
}

/* rarity: a small outlined label, and the outline colour of cards and tiles */
.olx-sp-card,
.olx-sp-item,
.olx-sp-gift,
.bubble.olx-sp-gift-msg {
  --r: var(--sp-r-common);
}
.olx-sp-card--rare,
.olx-sp-item--rare,
.olx-sp-gift--rare,
.bubble.olx-sp-gift-msg--rare,
.olx-sp-rarity--rare {
  --r: var(--sp-r-rare);
}
.olx-sp-card--epic,
.olx-sp-item--epic,
.olx-sp-gift--epic,
.bubble.olx-sp-gift-msg--epic,
.olx-sp-rarity--epic {
  --r: var(--sp-r-epic);
}
.olx-sp-card--legendary,
.olx-sp-item--legendary,
.olx-sp-gift--legendary,
.bubble.olx-sp-gift-msg--legendary,
.olx-sp-rarity--legendary {
  --r: var(--sp-r-legendary);
}
.olx-sp-rarity {
  --r: var(--sp-r-common);
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid var(--r);
  border-radius: 999px;
  color: var(--r);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.olx-sp-rarity--rare { --r: var(--sp-r-rare); }
.olx-sp-rarity--epic { --r: var(--sp-r-epic); }
.olx-sp-rarity--legendary { --r: var(--sp-r-legendary); }

/* ---------- gifts ---------- */
.olx-sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 10px;
}
.olx-sp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 8px 12px;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  background: var(--sp-surface);
  color: var(--sp-text);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.olx-sp-card:not(.olx-sp-card--common) {
  border-color: color-mix(in srgb, var(--r) 45%, transparent);
}
.olx-sp-card:hover:not(:disabled) {
  background: var(--sp-surface-hover);
}
.olx-sp-card.is-on {
  border-color: var(--sp-spark);
  outline: 1px solid var(--sp-spark);
}
.olx-sp-card.is-off {
  opacity: 0.45;
  cursor: default;
}
.olx-sp-card__icon {
  font-size: 40px;
  line-height: 1.1;
}
.olx-sp-card__limit {
  font-size: 11px;
  color: var(--sp-muted);
  text-align: center;
}
.olx-sp-send {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  background: var(--sp-surface);
}
.olx-sp-send label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--sp-muted);
}
.olx-sp-send__lbl {
  display: flex;
  justify-content: space-between;
}
.olx-sp-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--sp-line);
  border-radius: 10px;
  background: var(--sp-field);
  color: var(--sp-text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.olx-sp-input:focus {
  outline: none;
  border-color: var(--sp-accent);
}
.olx-sp-check {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  cursor: pointer;
}
.olx-sp-check input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 16px !important;
  height: 16px !important;
  min-width: 0 !important;
  flex: 0 0 auto;
  margin: 0 !important;
  accent-color: var(--sp-accent);
}
.olx-sp-check span {
  color: var(--sp-text);
}
.olx-sp-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--sp-accent);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.olx-sp-buy:hover:not(:disabled) {
  background: #6d99ff;
}
.olx-sp-buy:disabled {
  opacity: 0.4;
  cursor: default;
}
.olx-sp-buy .olx-sp-price {
  color: #fff;
}

/* ---------- cases ---------- */
.olx-sp-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.olx-sp-case {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  background: var(--sp-surface);
}
.olx-sp-case__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.olx-sp-case__head b {
  flex: 1;
  min-width: 0;
}
.olx-sp-case__icon {
  font-size: 24px;
}
.olx-sp-odds {
  flex: 1;
  display: grid;
  gap: 2px;
  font-size: 12.5px;
}
.olx-sp-odds__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--sp-line);
}
.olx-sp-odds__row:last-child {
  border-bottom: 0;
}
.olx-sp-odds__row em {
  font-style: normal;
  font-weight: 700;
  color: var(--sp-text);
  white-space: nowrap;
}
.olx-sp-prize {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--sp-spark);
  border-radius: 14px;
  text-align: center;
  animation: olx-sp-in 0.2s ease-out;
}
.olx-sp-prize small,
.olx-sp-prize span {
  font-size: 13px;
  color: var(--sp-muted);
}
.olx-sp-prize b {
  font-size: 19px;
}
@keyframes olx-sp-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- nick styles and prefixes ---------- */
.olx-sp-list {
  display: grid;
  gap: 10px;
}
.olx-sp-item {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  background: var(--sp-surface);
}
.olx-sp-item.is-on {
  border-color: var(--sp-spark);
  outline: 1px solid var(--sp-spark);
}
.olx-sp-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.olx-sp-item__title {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.olx-sp-item__title b {
  font-size: 15px;
}
.olx-sp-item__title small {
  color: var(--sp-muted);
  font-size: 12.5px;
}
.olx-sp-item__meta {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 4px;
}
.olx-sp-item__meta em {
  font-style: normal;
  font-size: 12px;
  color: var(--sp-ok);
  white-space: nowrap;
}
.olx-sp-item__preview {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--sp-line);
  border-radius: 10px;
  background: var(--sp-field);
  font-size: 16px;
  font-weight: 800;
  overflow: hidden;
}
.olx-sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.olx-sp-chip {
  width: 24px;
  height: 24px;
  border: 2px solid transparent;
  border-radius: 50%;
  outline: 1px solid var(--sp-line-strong);
  cursor: pointer;
}
.olx-sp-chip.is-on {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.olx-sp-item__buy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.olx-sp-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--sp-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--sp-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.olx-sp-opt:hover:not(:disabled) {
  border-color: var(--sp-spark);
}
.olx-sp-opt:disabled {
  opacity: 0.4;
  cursor: default;
}
.olx-sp-opt--wear {
  border-color: color-mix(in srgb, var(--sp-ok) 60%, transparent);
  color: var(--sp-ok);
}
.olx-sp-opt--wear:hover:not(:disabled) {
  border-color: var(--sp-ok);
}

/* ---------- how to earn and history ---------- */
.olx-sp-earn {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  background: var(--sp-surface);
  font-size: 13.5px;
  line-height: 1.55;
}
.olx-sp-earn__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.olx-sp-earn__head b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.olx-sp-earn__head span {
  color: var(--sp-spark);
}
.olx-sp-earn ul {
  margin: 0;
  padding-left: 18px;
}
.olx-sp-earn .olx-sp-note {
  margin-top: 8px;
}
.olx-sp-hist__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.olx-sp-hist__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--sp-line);
}
.olx-sp-hist__row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.olx-sp-hist__row small {
  color: var(--sp-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.olx-sp-hist__row em {
  font-style: normal;
  font-weight: 800;
}
.olx-sp-hist__row .is-plus {
  color: var(--sp-ok);
}
.olx-sp-hist__row .is-minus {
  color: #f59a9a;
}

/* ---------- gift shelf in the profile ---------- */
.olx-sp-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--pb-muted, #98a1c4);
}
.olx-sp-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.olx-sp-shelf--row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.olx-sp-shelf .olx-sp-gift {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--pb-text, #eef1ff);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.olx-sp-shelf .olx-sp-gift:not(.olx-sp-gift--common) {
  border-color: color-mix(in srgb, var(--r) 55%, transparent);
}
.olx-sp-shelf .olx-sp-gift:hover {
  background: rgba(255, 255, 255, 0.06);
}
.olx-sp-gift.is-hidden {
  opacity: 0.45;
}
.olx-sp-gift__icon {
  font-size: 34px;
  line-height: 1.15;
}
.olx-sp-gift--small .olx-sp-gift__icon {
  font-size: 28px;
}
.olx-sp-gift__name {
  font-weight: 600;
  text-align: center;
}
.olx-sp-gift__serial {
  font-size: 11px;
  color: #c4b5ff;
}
.olx-sp-gift__count {
  position: absolute;
  top: 6px;
  right: 7px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.olx-sp-gift__hidden {
  position: absolute;
  top: 6px;
  left: 7px;
  font-size: 10.5px;
  color: var(--pb-muted, #98a1c4);
}
.olx-sp-detail {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}
.olx-sp-detail__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.olx-sp-detail__head em {
  font-style: normal;
  font-size: 12px;
}
.olx-sp-detail__icon {
  font-size: 22px;
}
.olx-sp-detail__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.olx-sp-detail__row.is-hidden {
  opacity: 0.55;
}
.olx-sp-detail__from {
  color: var(--pb-muted, #98a1c4);
}
.olx-sp-detail__msg {
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.olx-sp-mini {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.olx-pb__btn--spark {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* ---------- a gift in a private chat ---------- */
.bubble.olx-sp-gift-msg {
  min-width: 230px;
  background: #141a38 !important;
  border: 1px solid color-mix(in srgb, var(--r) 60%, transparent) !important;
}
.olx-sp-gift-msg__card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.olx-sp-gift-msg__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-size: 30px;
}
.olx-sp-gift-msg__txt {
  display: grid;
  gap: 1px;
}
.olx-sp-gift-msg__txt small {
  font-size: 12px;
  color: #98a1c4;
}
.olx-sp-gift-msg__txt b {
  font-size: 16px;
}
.olx-sp-gift-msg__txt em {
  font-style: normal;
  font-size: 12px;
  color: #c4b5ff;
}
.olx-sp-gift-msg__note {
  margin-top: 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.olx-sp-gift-msg__open {
  margin-top: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.olx-sp-gift-msg__open:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- phone ---------- */
@media (max-width: 560px) {
  .olx-sp-overlay {
    padding: 0;
  }
  .olx-sp {
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .olx-sp__head,
  .olx-sp__body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .olx-sp-item__head {
    flex-wrap: wrap;
  }
  .olx-sp-shelf--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- gift pictures (instead of emoji where there is one) ---------- */
.olx-sp-gimg {
  display: block;
  width: 1.25em;
  height: 1.25em;
  object-fit: contain;
}
.olx-sp-card__icon {
  display: grid;
  place-items: center;
  height: 64px;
}
.olx-sp-card__icon .olx-sp-gimg {
  width: 64px;
  height: 64px;
}
.olx-sp-gift__icon .olx-sp-gimg {
  width: 52px;
  height: 52px;
}
.olx-sp-gift--small .olx-sp-gift__icon .olx-sp-gimg {
  width: 44px;
  height: 44px;
}
.olx-sp-detail__icon .olx-sp-gimg {
  width: 28px;
  height: 28px;
}
.olx-sp-gift-msg__icon .olx-sp-gimg {
  width: 42px;
  height: 42px;
}
.olx-sp-prize__pic .olx-sp-gimg {
  width: 88px;
  height: 88px;
  margin-bottom: 4px;
}

/* a seasonal gift: on sale only around its holiday */
.olx-sp-season {
  display: inline-flex;
  padding: 1px 8px;
  border: 1px solid #5eead4;
  border-radius: 999px;
  color: #5eead4;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.olx-sp-free {
  color: #5eead4;
  font-weight: 700;
}

/* the owner's «олик» coin picture */
img.olx-sp-star {
  width: 1.05em;
  height: 1.05em;
  object-fit: contain;
}
img.olx-sp-logo {
  width: 38px;
  height: 38px;
  margin: -3px;
}
img.olx-sp-coin {
  width: 22px;
  height: 22px;
}

/* a gift only Premium may give */
.olx-sp-prem {
  display: inline-flex;
  padding: 1px 8px;
  border: 1px solid #f2c14e;
  border-radius: 999px;
  color: #f2c14e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

/* a melody gift: a small play mark, plays only on a tap */
.olx-sp-play {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  color: #eef1ff;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
}
.olx-sp-play:hover {
  border-color: #c4b5ff;
}
.olx-sp-play.is-on {
  border-color: #c4b5ff;
  color: #c4b5ff;
}
.olx-sp-gift-msg__card .olx-sp-play {
  margin-left: auto;
  width: 34px;
  height: 34px;
  font-size: 12px;
}

/* weekly tasks and the invite link in «Как заработать» */
.olx-sp-week,
.olx-sp-invite {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.olx-sp-week small,
.olx-sp-invite small {
  color: #98a1c4;
  font-size: 12px;
}
.olx-sp-week__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px auto;
  align-items: center;
  gap: 12px;
}
.olx-sp-week__txt {
  display: grid;
  gap: 1px;
}
.olx-sp-week__txt em {
  font-style: normal;
  font-size: 12px;
  color: #98a1c4;
}
.olx-sp-week__row.is-done .olx-sp-week__txt em {
  color: #4ade9b;
}
.olx-sp-week__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.olx-sp-week__bar i {
  display: block;
  height: 100%;
  background: #c4b5ff;
}
.olx-sp-week__amount {
  font-weight: 700;
  color: #c4b5ff;
  white-space: nowrap;
}
.olx-sp-invite__row {
  display: flex;
  gap: 8px;
}
.olx-sp-invite__row .olx-sp-input {
  flex: 1;
  min-width: 0;
}

/* case pictures */
.olx-sp-case__icon .olx-sp-gimg {
  width: 52px;
  height: 52px;
}

/* oliki prize in a channel giveaway card */
.olx-sp-gw {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(196, 181, 255, 0.45);
  border-radius: 12px;
  font-size: 13px;
}
.olx-sp-gw small {
  color: #98a1c4;
  font-size: 12px;
}
.olx-sp-gw__prize {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.olx-sp-gw__prize b {
  color: #c4b5ff;
}
.olx-sp-gw .olx-sp-opt {
  justify-self: start;
  color: #eef1ff;
}
.olx-sp-gw--form {
  gap: 8px;
}
.olx-sp-gw--form label {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  color: #98a1c4;
}
.olx-sp-gw__row {
  display: flex;
  gap: 8px;
}
.olx-sp-gw .olx-sp-input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(4, 7, 22, 0.55);
  color: #eef1ff;
  font: inherit;
}
.olx-sp-gw .olx-sp-buy {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #5b8cff;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* A voice message on a gift: recording in the gift form, a player on the shelf and in the chat card. */
.olx-sp-voice { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 2px 0 10px; }
.olx-sp-voice small { color: #8f9bb8; font-size: 12px; }
.olx-sp-voice audio { height: 34px; max-width: 100%; flex: 1 1 200px; }
.olx-sp-voice__stop { border-color: #e5484d !important; color: #ffb4b6 !important; }
.olx-sp-voice-msg { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.olx-sp-voice-msg span { font-size: 12px; color: #a9b4d0; }
.olx-sp-voice-msg audio { height: 32px; width: 100%; max-width: 260px; }
