@font-face {
  font-family: 'Reader Reward';
  src: url('/assets/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Reader Reward';
  src: url('/assets/inter-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Reader Reward';
  src: url('/assets/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Reader Reward';
  src: url('/assets/inter-cyrillic-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

.reader-reward {
  display: grid;
  width: calc(100% + 28px);
  margin: 32px -14px 4px;
  gap: 12px;
  container-type: inline-size;
  font-family: 'Reader Reward', Inter, sans-serif;
}

.reader-reward-summary {
  display: grid;
  width: calc(100% - 12px);
  margin-inline: auto;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 3.5cqw, 16px);
  min-height: 76px;
  padding: 4px 14px 4px 4px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: linear-gradient(180deg, #151515, #0f0f0f);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .025);
}

.reader-reward-art {
  position: relative;
  display: block;
  width: 66px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: #000;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .7);
}

.reader-reward-art-media {
  position: absolute;
  inset: 0;
}

.reader-reward-art-media > img {
  --reward-token-glow: drop-shadow(0 0 1.3px rgb(225 242 255 / .55)) drop-shadow(0 0 3.4px rgb(94 162 255 / .48));
  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: var(--reward-token-glow);
  pointer-events: none;
}

.reader-reward-gift {
  position: absolute;
  inset: 0;
  width: 50px;
  height: auto;
  margin: auto;
  object-fit: contain;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reader-reward-art-spin { animation: reader-reward-glow 9.4s ease-in-out infinite; }
}

@keyframes reader-reward-glow {
  0%, 28%, 48%, 100% { filter: var(--reward-token-glow); }
  38% { filter: drop-shadow(0 0 1.6px rgb(225 242 255 / .63)) drop-shadow(0 0 4.5px rgb(94 162 255 / .54)); }
}

.reader-reward-words {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.reader-reward-caption {
  color: #8a95a3;
  font: 400 clamp(10px, 3.1cqw, 13px) / 1.35 'Reader Reward', Inter, sans-serif;
  text-wrap: balance;
}

.reader-reward-title {
  color: #f1f4f8;
  font: 600 clamp(15px, 4.5cqw, 18px) / 1.2 'Reader Reward', Inter, sans-serif;
}

.reader-reward-spins {
  font-size: clamp(17px, 5.4cqw, 22px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.reader-reward-spins-f {
  color: #5fa9ff;
  text-shadow: 0 0 4px rgb(87 159 255 / .8), 0 0 10px rgb(37 116 255 / .58);
}

.reader-reward-spins-s {
  color: #fff;
  font-size: .78em;
  text-shadow: 0 0 3px rgb(255 255 255 / .8), 0 0 8px rgb(255 255 255 / .38);
}

.reader-reward-amount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f5f7fa;
  font: 600 clamp(16px, 4.8cqw, 20px) / 1.2 'Reader Reward', Inter, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.reader-reward-token {
  display: block;
  width: 17px;
  height: 17px;
  flex: none;
}

.reader-reward-token svg { display: block; width: 100%; height: 100%; }

.reader-reward-value-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aeb8c5;
  font: 600 12px/1 'Reader Reward', Inter, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.reader-reward-value-button::before {
  position: absolute;
  z-index: -1;
  width: 20px;
  height: 20px;
  border: 1px solid rgb(213 229 255 / .12);
  border-radius: 50%;
  background: rgb(213 229 255 / .045);
  content: '';
  transition: background 180ms ease, border-color 180ms ease;
}

.reader-reward-value-button:is(:hover, :focus-visible, [aria-expanded="true"]) { color: #f5f8ff; }
.reader-reward-value-button:is(:hover, :focus-visible, [aria-expanded="true"])::before {
  border-color: rgb(179 210 253 / .35);
  background: rgb(151 194 255 / .13);
}
.reader-reward-value-button:focus-visible { outline: 1px solid #a7c9f6; outline-offset: 1px; }

.reader-reward-value {
  position: fixed;
  z-index: 45;
  width: min(235px, calc(100vw - 24px));
  padding: 13px 14px 12px;
  border: 1px solid rgb(235 243 255 / .14);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 12% 0%, rgb(110 147 184 / .14), transparent 68%),
    linear-gradient(180deg, rgb(255 255 255 / .05), transparent 58%),
    rgb(6 8 8 / .94);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 12px 36px rgb(0 0 0 / .5);
  color: #f4f6f8;
  font: 400 12px/1.4 'Reader Reward', Inter, sans-serif;
  visibility: hidden;
  opacity: 0;
  transform: translateY(9px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 380ms cubic-bezier(.22, 1, .36, 1), visibility 0s 220ms;
}

.reader-reward-value[data-open] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.reader-reward-value-caption,
.reader-reward-value-formula { margin: 0; }
.reader-reward-value-caption { color: #b4c1d1; }

.reader-reward-value-total {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
  font-size: 21px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.reader-reward-value-total svg { width: 28px; height: 28px; flex: none; }
.reader-reward-value-total span { color: #95dbc3; font-size: 12px; }
.reader-reward-value-formula { color: #a5afbc; font-variant-numeric: tabular-nums; }

.reader-reward-claim {
  position: relative;
  display: block;
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #0b0b0b;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.reader-reward-claim-surface {
  position: absolute;
  inset: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: inherit;
  background: linear-gradient(180deg, #212121, #161616);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .045),
    0 1px 2px rgb(0 0 0 / .16);
  pointer-events: none;
  transition: box-shadow 220ms ease;
}

.reader-reward-claim-label {
  padding: 0 16px;
  color: #f3f7ff;
  font: 700 clamp(11px, 3.25cqw, 14px) / 1.2 'Partner Druk Wide', Inter, sans-serif;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgb(0 0 0 / .8);
}

.reader-reward-claim:any-link:active .reader-reward-claim-surface {
  box-shadow: inset 0 2px 5px rgb(0 0 0 / .42), inset 0 1px 0 rgb(0 0 0 / .18);
  transition-duration: 140ms;
}

@media (hover: hover) and (pointer: fine) {
  .reader-reward-claim:any-link:hover:not(:active) .reader-reward-claim-surface {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .075), 0 1px 2px rgb(0 0 0 / .16);
  }
}

.reader-reward-claim:not([href]) { cursor: default; }
.reader-reward-claim[data-locked] .reader-reward-claim-label { color: #a7abb1; }

.reader-reward-claim:focus-visible { outline: 1px solid rgb(255 255 255 / .5); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .reader-reward-value,
  .reader-reward-value[data-open] { transform: none; transition: none; }
  .reader-reward-claim-surface { transition: none; }
}
