/* ReinSama storefront sprites. Atlas sprites CC0; custom pixel icons drawn for the shop. */
:root {
  --rs-px-wallet: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20fill%3D%22%2325190f%22%20d%3D%22M3%203h10v1h2v9h-1v1H2v-1H1V5h2z%22%2F%3E%3Cpath%20fill%3D%22%23b66d32%22%20d%3D%22M3%205h10v7H3z%22%2F%3E%3Cpath%20fill%3D%22%23f4c677%22%20d%3D%22M3%206h10v1H3zM3%207h1v4H3z%22%2F%3E%3Cpath%20fill%3D%22%2385431f%22%20d%3D%22M4%2011h9v1H4z%22%2F%3E%3Cpath%20fill%3D%22%23f5cf84%22%20d%3D%22M10%208h4v3h-4z%22%2F%3E%3Cpath%20fill%3D%22%23614020%22%20d%3D%22M11%209h1v1h-1z%22%2F%3E%3C%2Fsvg%3E");
  --rs-px-hourglass: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2UlEQVR4nGNgwAE4WYT+c7II/ccljxdwsgj9P9J++3+B32KChjBh01xsNYXh9LmrDMcurSfdZj/5zP+cLEL/Z3iY/jcVVyHeBZwsQv8tJIIYPv/9zcDAwMAgyP+XKEsxvHDixToGBgYGhgNXWBg+/fgFNxyXSxjRvdAWOI+BgYGBwdRIm2HN8RMo4XD5yQGG73/eMTLgAzDb5iXd+2+mEPQfxsflAgwvYLPh+593jLhsxjCAVEA7A5LmKeEPLEIGzEu6R1Q+oNgLOAEni9B/R5kU8nMkzBBCagCxDFGPOh6y5AAAAABJRU5ErkJggg==");
  --rs-px-star: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20fill%3D%22%23382417%22%20d%3D%22M7%201h2v2h1v2h1v1h4v3h-2v1h-1v2h1v3h-3v-1H9v-1H7v1H6v1H3v-3h1v-2H3V9H1V6h4V5h1V3h1z%22%2F%3E%3Cpath%20fill%3D%22%23f5ad29%22%20d%3D%22M7%203h2v2h1v2h4v1h-2v1h-1v3h1v2h-2v-1H9v-1H7v1H6v1H4v-2h1V9H4V8H2V7h4V5h1z%22%2F%3E%3Cpath%20fill%3D%22%23ffda54%22%20d%3D%22M7%204h2v2h1v2h3v1h-2v1H9v1H7v1H5v-2h1V9H4V8h3z%22%2F%3E%3Cpath%20fill%3D%22%23fff3b0%22%20d%3D%22M7%204h1v3H7v1H5V7h2z%22%2F%3E%3C%2Fsvg%3E");
  --rs-px-coupon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20fill%3D%22%23261a12%22%20d%3D%22M2%203h12v1h1v3h-1v2h1v3h-1v1H2v-1H1V9h1V7H1V4h1z%22%2F%3E%3Cpath%20fill%3D%22%23f8c85e%22%20d%3D%22M2%204h12v2h-1v4h1v2H2v-2h1V6H2z%22%2F%3E%3Cpath%20fill%3D%22%23ffe8a0%22%20d%3D%22M3%204h10v1H3z%22%2F%3E%3Cpath%20fill%3D%22%23bf7532%22%20d%3D%22M3%2011h10v1H3zM10%205h1v2h-1zM10%208h1v1h-1zM10%2010h1v1h-1z%22%2F%3E%3Cpath%20fill%3D%22%23805321%22%20d%3D%22M5%206h3v1H5zM5%208h4v1H5z%22%2F%3E%3C%2Fsvg%3E");
  --rs-px-account: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20fill%3D%22%23191623%22%20d%3D%22M5%201h6v1h2v2h1v5h-1v2h-1v1h2v1h1v2H1v-2h1v-1h2v-1H3V9H2V4h1V2h2z%22%2F%3E%3Cpath%20fill%3D%22%2355526d%22%20d%3D%22M4%2012h3v1h2v-1h3v1h2v1H2v-1h2z%22%2F%3E%3Cpath%20fill%3D%22%23f2bb8b%22%20d%3D%22M4%206h8v4h-1v1H5v-1H4z%22%2F%3E%3Cpath%20fill%3D%22%23fbf5f0%22%20d%3D%22M5%202h6v1h2v3h-2V5h-1v2H8V5H7v1H5v2H3V4h2z%22%2F%3E%3Cpath%20fill%3D%22%23b2a9c5%22%20d%3D%22M5%203h2v1H5zM11%204h2v1h-2z%22%2F%3E%3Cpath%20fill%3D%22%23362539%22%20d%3D%22M5%208h1v1H5zM10%208h1v1h-1z%22%2F%3E%3Cpath%20fill%3D%22%23fff0d8%22%20d%3D%22M7%2010h2v1H7z%22%2F%3E%3Cpath%20fill%3D%22%23e8b756%22%20d%3D%22M7%2013h2v1H7z%22%2F%3E%3C%2Fsvg%3E");
  --rs-px-orders: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20shape-rendering%3D%22crispEdges%22%3E%3Cpath%20fill%3D%22%23281e19%22%20d%3D%22M3%201h7v1h1v1h1v1h1v11H3z%22%2F%3E%3Cpath%20fill%3D%22%23f9eac9%22%20d%3D%22M4%202h5v4h3v8H4z%22%2F%3E%3Cpath%20fill%3D%22%23d3ae72%22%20d%3D%22M10%203h1v1h1v1h-2zM5%208h6v1H5zM5%2010h6v1H5zM5%2012h4v1H5z%22%2F%3E%3C%2Fsvg%3E");
}

:is(.rg-shop [data-rg-topup], #rs-topup-toggle) .bx-wallet,
:is(.rs-mobile-nav,#rg-live-dock) .rs-mobile-topup-icon .bx-wallet { --rs-px-icon: var(--rs-px-wallet); }
:is(.rs-mobile-nav,#rg-live-dock) .bx-home-alt { --rs-px-icon: var(--rs-px-star); }
:is(.rs-mobile-nav,#rg-live-dock) .bx-purchase-tag-alt { --rs-px-icon: var(--rs-px-coupon); }
:is(.rs-mobile-nav,#rg-live-dock) .bx-user-circle,
.rg-header .rg-user .bx-user-circle { --rs-px-icon: var(--rs-px-account); }

:is(.rg-shop [data-rg-topup], #rs-topup-toggle) .bx-wallet::before,
:is(.rs-mobile-nav,#rg-live-dock) :is(.bx-wallet,.bx-home-alt,.bx-purchase-tag-alt,.bx-user-circle)::before,
.rg-header .rg-user .bx-user-circle::before {
  content: "" !important;
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.14em;
  background: var(--rs-px-icon) center / contain no-repeat;
  image-rendering: pixelated;
}

:is(.rg-shop [data-rg-topup], #rs-topup-toggle, #rs-mobile-topup, #rg-live-dock [data-rg-topup]) .bx-wallet {
  display: inline-grid;
  place-items: center;
  flex: none;
}
:is(.rg-shop [data-rg-topup], #rs-topup-toggle) .bx-wallet::before {
  width: 20px;
  height: 20px;
}
:is(.rs-mobile-nav,#rg-live-dock) .rs-mobile-topup-icon .bx-wallet::before {
  width: 24px;
  height: 24px;
}

#rs-home-tracking > summary > svg {
  background: var(--rs-px-orders) center / contain no-repeat;
  image-rendering: pixelated;
}
#rs-home-tracking > summary > svg > * { visibility: hidden; }

#rs-home-tracking .rs-home-track-detail small[data-state="processing"]::before {
  content: "";
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  margin-inline-end: .28em;
  vertical-align: -.23em;
  background: var(--rs-px-hourglass) center / contain no-repeat;
  image-rendering: pixelated;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.rg-shop [data-rg-topup], #rs-topup-toggle):is(:focus-visible,:active) .bx-wallet::before,
  :is(.rs-mobile-nav,#rg-live-dock) button:is(:focus-visible,:active) .bx-wallet::before {
    animation: rs-shop-pixel-glint 340ms ease-out;
  }
  #rs-home-tracking[open] .rs-home-track-detail small[data-state="processing"]::before {
    animation: rs-shop-pixel-flip 8s infinite;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.rg-shop [data-rg-topup], #rs-topup-toggle):hover .bx-wallet::before,
  :is(.rs-mobile-nav,#rg-live-dock) button:hover .bx-wallet::before {
    animation: rs-shop-pixel-glint 340ms ease-out;
  }
}
@keyframes rs-shop-pixel-glint {
  0%,100% { transform: translateY(0); filter: brightness(1); }
  28% { transform: translateY(-2px); filter: brightness(1.48) drop-shadow(0 0 4px #fff2aa); }
  55% { transform: translateY(-1px); filter: brightness(1.12); }
}
@keyframes rs-shop-pixel-flip {
  0%,10%,71%,100% { transform: rotate(0); }
  12% { transform: rotate(-9deg); }
  18% { transform: rotate(184deg); animation-timing-function: ease-out; }
  21%,60% { transform: rotate(180deg); }
  62% { transform: rotate(189deg); }
  68% { transform: rotate(-4deg); animation-timing-function: ease-out; }
}
