/* Quest Rush feedback only. The stronger indicator stays in normal flow,
   with decorative badges and opaque, readable surfaces in every appearance. */
#gameApp .reward-event-indicator,
#gameApp .reward-event-notice,
#gameApp .round-reward-label {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #745099;
  border-radius: 6px;
  background: #fff8ed;
  color: #43235d;
  font-family: inherit;
  font-size: .8rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: none;
  animation: none;
  transition: none;
}

#gameApp .round-reward-label { font-weight: 750; }
#gameApp .reward-event-notice { border-inline-start-width: 3px; }
#gameApp .round-reward-label { align-self: stretch; text-align: center; }

body[data-theme="egyptian"] #gameApp .reward-event-notice,
body[data-theme="egyptian"] #gameApp .round-reward-label {
  background: #fff0cd;
  color: #163b4b;
  border-color: #83602e;
}

body[data-theme="caveman"] #gameApp .reward-event-notice,
body[data-theme="caveman"] #gameApp .round-reward-label {
  background: #fff1cc;
  color: #203e2e;
  border-color: #75613b;
}

/* Keep the established banner and reserve its full, untransformed flow space. */
#gameApp .reward-event-indicator {
  --rush-start: #ad1764;
  --rush-end: #731579;
  --rush-edge: #ffd267;
  --rush-depth: #62134f;
  --rush-badge: #ffe18a;
  --rush-badge-ink: #67194d;
  position: relative;
  width: 100%;
  min-height: 66px;
  padding: 10px 12px 10px 74px;
  border: 2px solid var(--rush-edge);
  border-radius: 16px;
  background-color: var(--rush-end);
  background-image: linear-gradient(115deg, var(--rush-start), var(--rush-end));
  color: #fff8ed;
  box-shadow: inset 0 1px 0 #ffffff30, 0 4px 0 var(--rush-depth), 0 6px 14px #27113924;
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.5;
  white-space: pre-line;
}

#gameApp .reward-event-indicator::first-line {
  font-size: 1.1rem;
  font-weight: 950;
  letter-spacing: .045em;
  text-transform: uppercase;
}

/* Follow the displayed phase, including the held final boosted reveal.
   Like winFlash, pulse, tilt and warm text glow together, but scale inward
   and tilt only slightly so this full-width surface stays clear of controls.
   CSS owns the loop: no reward writes, timers or repeated announcements. */
@keyframes questRushPulse {
  0%, 100% { transform: scale(.98); text-shadow: none; }
  50% { transform: scale(1) rotate(-.4deg); text-shadow: 0 0 6px var(--rush-edge); }
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.fx-reduced-motion) #gameApp .reward-event-indicator[data-reward-phase="active"]:not([hidden]) {
    animation: questRushPulse .75s ease-in-out infinite;
  }
}

#gameApp .reward-event-indicator::before {
  /* Empty alternative text keeps this duplicate multiplier decorative. */
  content: "2×" / "";
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  border: 2px solid var(--rush-edge);
  border-radius: 14px;
  background: var(--rush-badge);
  color: var(--rush-badge-ink);
  box-shadow: inset 0 2px 0 #ffffff90, 0 3px 0 #00000025;
  font-size: 1.85rem;
  font-weight: 950;
  line-height: 44px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

#gameApp .reward-event-indicator[data-reward-phase="cooldown"] {
  --rush-start: #613190;
  --rush-end: #39235b;
  --rush-edge: #c5a0f5;
  --rush-depth: #302044;
  --rush-badge: #eadbff;
  --rush-badge-ink: #402161;
}

#gameApp .reward-event-indicator[data-reward-phase="cooldown"]::before {
  content: attr(data-reward-count) / "";
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
}

body[data-theme="egyptian"] #gameApp .reward-event-indicator {
  --rush-start: #0c6071;
  --rush-end: #093542;
  --rush-edge: #f4ce76;
  --rush-depth: #142d33;
  --rush-badge: #ffe2a0;
  --rush-badge-ink: #163b4b;
  border-radius: 16px 5px 16px 5px;
}

body[data-theme="egyptian"] #gameApp .reward-event-indicator[data-reward-phase="cooldown"] {
  --rush-start: #59451e;
  --rush-end: #302c1b;
  --rush-edge: #cfb578;
  --rush-depth: #282719;
  --rush-badge: #ecdcaf;
  --rush-badge-ink: #463317;
}

body[data-theme="caveman"] #gameApp .reward-event-indicator {
  --rush-start: #784525;
  --rush-end: #442719;
  --rush-edge: #f0bf69;
  --rush-depth: #302017;
  --rush-badge: #f4d18d;
  --rush-badge-ink: #402318;
  border-radius: 9px 15px 11px 13px;
}

body[data-theme="caveman"] #gameApp .reward-event-indicator[data-reward-phase="cooldown"] {
  --rush-start: #365640;
  --rush-end: #183c2d;
  --rush-edge: #adbb8a;
  --rush-depth: #10261c;
  --rush-badge: #ddecbe;
  --rush-badge-ink: #1e3828;
}

/* A small gold sticker above Pays; table entries remain base multipliers. */
#gameApp .paytable-pays-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

#gameApp .paytable-boost {
  position: relative;
  display: inline-block;
  min-width: 48px;
  padding: 3px 8px;
  border: 2px solid #fff5ba;
  border-radius: 12px;
  background: linear-gradient(160deg, #fff3a8, #ffc348 75%);
  color: #67204d;
  box-shadow: inset 0 1px 0 #fffdf0, 0 3px 0 #b76b20, 0 5px 8px #43235d26;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
  transform: rotate(-8deg);
}

#gameApp .paytable-boost[hidden] { display: none !important; }

#gameApp .paytable-boost::before,
#gameApp .paytable-boost::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffd45b;
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
}
#gameApp .paytable-boost::before { top: -3px; left: -11px; }
#gameApp .paytable-boost::after { right: -10px; bottom: 0; width: 9px; height: 9px; }

@media (forced-colors: active) {
  body #gameApp .reward-event-indicator {
    --rush-edge: CanvasText;
    --rush-badge: Canvas;
    --rush-badge-ink: CanvasText;
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
    box-shadow: none;
  }
  body #gameApp .reward-event-indicator::before {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
  body #gameApp .paytable-boost {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
  body #gameApp .paytable-boost::before,
  body #gameApp .paytable-boost::after { background: CanvasText; }
}