:root {
  --rg-pink: #ee4e82;
  --rg-teal: #19b5b6;
  --rg-dark: #222a31;
  --rg-line: #dfe5e9;
  --rg-soft: #f6f8f9;
}

html.rg-open,
html.rg-open body {
  overflow: hidden
}

.rg-widget,
.rg-widget * {
  box-sizing: border-box
}

.rg-widget {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--rg-dark)
}

.rg-launcher-wrap {
  position: fixed;
  right: 25px;
  bottom: 100px;
  z-index: 99;
  width: 96px;
  height: 96px
}

.rg-launcher {
  position: absolute;
  inset: 0;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer
}

.rg-avatar-circle {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: 0;
  background: none;
  box-shadow: none
}

.rg-avatar-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: rgBob 3s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .16))
}

.rg-badge {
  position: absolute;
  right: 6px;
  bottom: 5px;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--rg-pink);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(238, 78, 130, .28)
}

.rg-invite {
  position: fixed;
  right: 22px;
  bottom: 210px;
  x;
  z-index: 99990;
  width: 286px;
  padding: 18px 18px 16px;
  border-radius: 22px 22px 10px 22px;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
  transition: opacity .2s ease, transform .2s ease;
  cursor: pointer
}

.rg-invite:after {
  content: "";
  position: absolute;
  right: 38px;
  bottom: -18px;
  border: 10px solid transparent;
  border-top-color: #fff
}

.rg-invite.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none
}

.rg-invite-close {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: #f5f6f7;
  color: #aab3b8;
  font-size: 17px;
  cursor: pointer
}

.rg-invite-title {
  padding-right: 24px;
  font-size: 2;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.02em
}

.rg-invite-text {
  margin-top: 7px;
  color: #6f7980;
  font-size: 15px;
  line-height: 1.3
}

.rg-invite-text b {
  color: var(--rg-teal)
}

.rg-invite-play {
  margin-top: 14px;
  min-width: 145px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--rg-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer
}



.rg-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(16, 22, 26, .48);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px
}

.rg-overlay[hidden] {
  display: none !important
}

.rg-modal {
  position: relative;
  width: min(1000px, 94vw);
  padding: 20px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .25);
  overflow: hidden
}

.rg-modal-close {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f5f6f7;
  color: #a6afb4;
  font-size: 21px;
  cursor: pointer;
  z-index: 2
}

.rg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  grid-template-areas: "left right" "promo right";
  column-gap: 16px;
  row-gap: 0;
  align-items: start
}

.rg-left {
  grid-area: left;
  min-width: 0
}

.rg-right {
  grid-area: right;
  min-width: 0
}

.rg-promo-slot {
  grid-area: promo
}

.rg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 38px
}

.rg-head-icon {
  width: 74px;
  height: 74px;
  flex: 0 0 74px
}

.rg-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  color: var(--rg-teal)
}

.rg-head h2 {
  margin: 4px 0 0;
  font-size: 42px;
  line-height: .96;
  letter-spacing: -.045em
}

.rg-lead {
  margin: 6px 0 0;
  color: #687279;
  font-size: 15px;
  line-height: 1.25
}

.rg-lead b {
  color: var(--rg-pink)
}

.rg-prizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px
}

.rg-prize {
  padding: 10px 7px;
  border: 1px solid var(--rg-line);
  border-radius: 15px;
  background: #fff;
  text-align: center
}

.rg-prize--easy {
  border-color: #f1cad7;
  background: #fffafb
}

.rg-prize strong {
  display: block;
  font-size: 27px;
  line-height: .95;
  letter-spacing: -.04em
}

.rg-prize:nth-child(1) strong,
.rg-prize:nth-child(3) strong {
  color: var(--rg-pink)
}

.rg-prize:nth-child(2) strong {
  color: var(--rg-teal)
}

.rg-prize span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 800;
  color: #4e575c
}

.rg-prize small {
  display: block;
  margin-top: 3px;
  color: #939ba0;
  font-size: 9px;
  line-height: 1.2
}

.rg-note {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f3f8f8;
  color: #68747a;
  font-size: 12px;
  line-height: 1.35
}

.rg-note b {
  color: #232a2f
}

.rg-progress {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px
}

.rg-progress-card {
  padding: 9px 11px;
  border-radius: 13px;
  background: var(--rg-soft)
}

.rg-progress-card span {
  display: block;
  color: #7e878c;
  font-size: 10px
}

.rg-progress-card strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800
}

.rg-progress-card strong i {
  font-style: normal;
  font-size: 26px;
  font-weight: 900
}

.rg-bar {
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: #dfe5e8;
  overflow: hidden
}

.rg-bar u {
  display: block;
  height: 100%;
  width: 0;
  background: var(--rg-pink);
  border-radius: inherit;
  transition: width .2s ease
}

.rg-bar.teal u {
  background: var(--rg-teal)
}

.rg-easy-tip {
  margin-top: 8px;
  color: #7b858a;
  font-size: 11px;
  line-height: 1.3
}

/* This space is always reserved. Empty = invisible white space, reward = same height. */
.rg-promo-slot {
  height: 112px;
  margin-top: 9px;
  display: flex;
  align-items: stretch
}

.rg-promo-slot.is-empty {
  visibility: hidden;
  pointer-events: none
}

.rg-unlocked,
.rg-reward {
  width: 100%;
  height: 112px;
  padding: 10px 12px;
  border: 1px solid #dbe8e8;
  border-radius: 15px;
  background: linear-gradient(180deg, #fbffff, #f6fbfb);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 10px;
  align-items: center
}

.rg-unlocked[hidden],
.rg-reward[hidden] {
  display: none !important
}

.rg-reward-main span {
  display: block;
  color: #727b80;
  font-size: 10px
}

.rg-reward-main strong {
  display: block;
  margin: 2px 0 3px;
  color: var(--rg-pink);
  font-size: 34px;
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.04em
}

.rg-reward-main p {
  margin: 0;
  color: #687277;
  font-size: 10px;
  line-height: 1.25
}

.rg-unlocked-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px
}

.rg-unlocked-actions button {
  min-height: 34px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer
}

.rg-unlocked-actions button:first-child {
  border: 0;
  background: var(--rg-dark);
  color: #fff
}

.rg-unlocked-actions button:last-child {
  border: 1px solid #dce3e6;
  background: #fff;
  color: #4b555a
}

.rg-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.rg-reward button {
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--rg-teal);
  border-radius: 10px;
  background: #fff;
  color: #1f2529;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .03em;
  cursor: pointer
}

.rg-reward small {
  color: #8a9297;
  font-size: 9px;
  text-align: center
}

.rg-right {
  display: flex;
  flex-direction: column
}

.rg-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px
}

.rg-board button {
  aspect-ratio: 1/1;
  border: 1px solid var(--rg-line);
  border-radius: 15px;
  background: #f7f9fa;
  font-size: 52px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .14s ease, transform .05s ease
}

.rg-board button:hover:not(:disabled) {
  background: #eff3f5
}

.rg-board button:active:not(:disabled) {
  transform: scale(.98)
}

.rg-board button.is-x {
  color: var(--rg-pink)
}

.rg-board button.is-o {
  color: var(--rg-teal)
}

.rg-status {
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  margin-top: 9px;
  min-height: 23px
}

.rg-substatus {
  text-align: center;
  color: #8d959a;
  font-size: 10px;
  min-height: 14px;
  margin-top: 2px
}

.rg-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px
}

.rg-next,
.rg-reset {
  flex: 1;
  min-height: 38px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer
}

.rg-next {
  border: 0;
  background: var(--rg-dark);
  color: #fff
}

.rg-reset {
  border: 1px solid #dce3e6;
  background: #fff;
  color: #4b555a
}

.rg-next[hidden] {
  display: none
}

.rg-demo {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #fff3f6;
  color: #a14b63;
  font-size: 9px;
  line-height: 1.3
}

.rg-demo[hidden] {
  display: none
}

@keyframes rgBob {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-4px)
  }
}

/* Tablet/mobile: compact single-column layout */
@media (max-width: 760px) {
  .rg-overlay {
    padding: 6px;
    align-items: center
  }

  .rg-modal {
    width: min(430px, 100%);
    max-height: 96dvh;
    padding: 12px;
    border-radius: 20px;
    overflow: hidden
  }

  .rg-modal-close {
    right: 9px;
    top: 9px;
    width: 28px;
    height: 28px;
    font-size: 18px
  }

  .rg-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "left" "right" "promo";
    gap: 8px
  }

  .rg-head {
    gap: 8px;
    padding-right: 30px
  }

  .rg-head-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px
  }

  .rg-kicker {
    font-size: 8px;
    letter-spacing: .11em
  }

  .rg-head h2 {
    font-size: 25px;
    margin-top: 2px
  }

  .rg-lead {
    font-size: 11px;
    margin-top: 3px
  }

  .rg-prizes {
    margin-top: 8px;
    gap: 5px
  }

  .rg-prize {
    padding: 7px 4px;
    border-radius: 11px
  }

  .rg-prize strong {
    font-size: 20px
  }

  .rg-prize span {
    font-size: 9px;
    margin-top: 3px
  }

  .rg-prize small {
    font-size: 7px
  }

  .rg-note {
    margin-top: 7px;
    padding: 7px 8px;
    font-size: 9px;
    border-radius: 9px
  }

  .rg-progress {
    margin-top: 7px;
    gap: 6px
  }

  .rg-progress-card {
    padding: 7px 8px;
    border-radius: 10px
  }

  .rg-progress-card span {
    font-size: 8px
  }

  .rg-progress-card strong {
    font-size: 10px
  }

  .rg-progress-card strong i {
    font-size: 18px
  }

  .rg-bar {
    height: 5px;
    margin-top: 5px
  }

  .rg-easy-tip {
    margin-top: 5px;
    font-size: 8px
  }

  .rg-promo-slot {
    height: 82px;
    margin-top: 6px
  }

  .rg-unlocked,
  .rg-reward {
    height: 82px;
    padding: 7px 8px;
    grid-template-columns: minmax(0, 1fr) 145px;
    gap: 7px;
    border-radius: 11px
  }

  .rg-reward-main span {
    font-size: 8px
  }

  .rg-reward-main strong {
    font-size: 25px
  }

  .rg-reward-main p {
    font-size: 8px
  }

  .rg-unlocked-actions {
    gap: 4px
  }

  .rg-unlocked-actions button {
    min-height: 27px;
    font-size: 8px;
    border-radius: 8px
  }

  .rg-reward button {
    padding: 7px;
    font-size: 10px
  }

  .rg-reward small {
    font-size: 7px
  }

  .rg-board {
    width: 215px;
    margin: 0 auto;
    gap: 6px
  }

  .rg-board button {
    font-size: 40px;
    border-radius: 12px
  }

  .rg-status {
    margin-top: 6px;
    font-size: 14px;
    min-height: 18px
  }

  .rg-substatus {
    font-size: 8px;
    min-height: 11px
  }

  .rg-actions {
    margin-top: 6px;
    gap: 5px
  }

  .rg-next,
  .rg-reset {
    min-height: 32px;
    font-size: 9px;
    border-radius: 8px
  }

  .rg-demo {
    font-size: 7px;
    margin-top: 4px;
    padding: 5px 6px
  }

}

@media (max-width:560px) {
  .rg-launcher-wrap {
    right: 10px;
    bottom: 18px;
    width: 84px;
    height: 84px
  }

  .rg-badge {
    min-width: 28px;
    height: 28px;
    font-size: 16px
  }

  .rg-invite {
    right: 12px;
    bottom: 106px;
    width: 248px;
    padding: 15px 15px 14px
  }

  .rg-invite-title {
    font-size: 18px
  }

  .rg-invite-text {
    font-size: 14px
  }

}

/* Short phones: remove only repeated explanatory copy, keep rules + progress + game. */
@media (max-width:560px) and (max-height:720px) {
  .rg-modal {
    padding: 9px;
    max-height: 98dvh
  }

  .rg-head-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px
  }

  .rg-head h2 {
    font-size: 22px
  }

  .rg-lead {
    font-size: 9px
  }

  .rg-note,
  .rg-easy-tip {
    display: none
  }

  .rg-prizes {
    margin-top: 5px
  }

  .rg-prize {
    padding: 5px 3px
  }

  .rg-prize strong {
    font-size: 18px
  }

  .rg-prize span {
    font-size: 8px
  }

  .rg-prize small {
    display: none
  }

  .rg-progress {
    margin-top: 5px
  }

  .rg-promo-slot {
    height: 72px;
    margin-top: 4px
  }

  .rg-unlocked,
  .rg-reward {
    height: 72px
  }

  .rg-board {
    width: 196px
  }

  .rg-board button {
    font-size: 35px
  }

  .rg-status {
    font-size: 12px;
    margin-top: 4px
  }

  .rg-actions {
    margin-top: 4px
  }

}


/* v12: one cumulative wins scale */
.rg-progress--single {
  grid-template-columns: 1fr
}

.rg-progress-card--single {
  padding: 10px 12px 13px
}

.rg-progress-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px
}

.rg-progress-top span {
  font-size: 11px;
  color: #7e878c
}

.rg-progress-top strong {
  margin: 0;
  font-size: 14px;
  line-height: 1;
  font-weight: 800
}

.rg-progress-top strong i {
  font-style: normal;
  font-size: 28px;
  font-weight: 900
}

.rg-bar--milestones {
  position: relative;
  overflow: visible;
  margin-top: 12px
}

.rg-bar--milestones>u {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--rg-pink), var(--rg-teal));
  z-index: 1
}

.rg-mark {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 13px;
  transform: translate(-50%, -50%);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(60, 70, 75, .12);
  z-index: 2
}

.rg-mark em {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: #7f898f;
  white-space: nowrap
}

.rg-mark--5 {
  left: 30%
}

.rg-mark--7 {
  left: 50%
}

.rg-mark--10 {
  left: calc(100% - 1px)
}

.rg-mark--5 em {
  color: var(--rg-pink)
}

.rg-mark--7 em {
  color: var(--rg-teal)
}

.rg-mark--10 em {
  color: var(--rg-pink);
  transform: translateX(-100%)
}

@media (max-width:760px) {
  .rg-progress-card--single {
    padding: 8px 9px 12px
  }

  .rg-progress-top span {
    font-size: 8px
  }

  .rg-progress-top strong {
    font-size: 10px
  }

  .rg-progress-top strong i {
    font-size: 20px
  }

  .rg-bar--milestones {
    margin-top: 8px
  }

  .rg-mark {
    height: 10px
  }

  .rg-mark em {
    top: 9px;
    font-size: 7px
  }

  .rg-invite {
    width: 196px;
    bottom: 209px;
  }

}

@media (max-width:560px) and (max-height:720px) {
  .rg-progress-card--single {
    padding: 6px 8px 10px
  }

  .rg-progress-top strong i {
    font-size: 18px
  }

  .rg-mark em {
    font-size: 6px
  }
}


@media (max-width:560px) {
  .bx-touch .b24-widget-button-popup {
    width: 165px;
  }

  .rg-invite {
    ;
    bottom: 123px !important;
  }

}

.rg-launcher,
.rg-launcher:hover,
.rg-launcher:focus,
.rg-launcher:active {
  background: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.rg-launcher.is-modal-open {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Add at the end of the rhino widget's own stylesheet. */
.rg-launcher-wrap {
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(var(--rd-game-bottom, 20px) + env(safe-area-inset-bottom));
}

@media (max-width: 767px) {
  .rg-launcher-wrap {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(var(--rd-game-bottom, 16px) + env(safe-area-inset-bottom));
  }
}

/* Avoid two invitations at the same time; the character remains visible. */
html.rd-help-invite .rg-invite {
  visibility: hidden;
  pointer-events: none;
}

/* Put at the END of the rhino's own stylesheet. Replaces rhino-position.css. */
.rg-launcher-wrap {
  width: 72px !important;
  height: 72px !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: calc(var(--rd-game-bottom, 20px) + env(safe-area-inset-bottom)) !important
}

.rg-launcher,
.rg-avatar-circle {
  width: 100% !important;
  height: 100% !important
}

.rg-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  animation: none !important;
  transform: none !important
}

.rg-badge {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  font: 600 14px/1 Arial, sans-serif !important;
  right: 2px !important;
  bottom: 2px !important;
  box-shadow: none !important
}

.rg-launcher-close {
  width: 24px !important;
  height: 24px !important;
  top: -14px !important;
  right: -4px !important;
  bottom: auto !important;
  font-size: 16px !important
}

.rg-invite {
  box-sizing: border-box !important;
  width: 290px !important;
  max-width: calc(100vw - 32px) !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: calc(var(--rd-game-bottom, 20px) + env(safe-area-inset-bottom) + 84px) !important;
  padding: 22px !important;
  border: 1px solid #e3e9e8 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 12px 40px #1933321c !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color: #253734 !important
}

.rg-invite::before,
.rg-invite::after {
  display: none !important
}

.rg-invite-title {
  font: 600 20px/1.3 Arial, sans-serif !important;
  padding-right: 20px !important;
  margin: 0 0 10px !important
}

.rg-invite-text {
  font: 400 14px/1.55 Arial, sans-serif !important;
  color: #596866 !important;
  margin: 0 0 18px !important
}

.rg-invite-play {
  width: 100% !important;
  min-height: 46px !important;
  background: #167c79 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 11px !important;
  font: 400 15px/1.4 Arial, sans-serif !important
}

.rg-invite-close {
  width: 44px !important;
  height: 44px !important;
  top: 3px !important;
  right: 3px !important;
  font-size: 23px !important;
  color: #657572 !important;
  background: transparent !important
}

.rg-launcher:focus-visible,
.rg-launcher-close:focus-visible,
.rg-invite button:focus-visible {
  outline: 3px solid #167c79;
  outline-offset: 3px
}

html.rd-rhino-managed .rg-invite {
  display: none !important
}

html.rd-rhino-managed.rd-rhino-invite-open .rg-invite {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important
}

html.rd-help-invite .rg-invite {
  visibility: hidden !important;
  pointer-events: none !important
}

@media(max-width:767px) {
  .rg-launcher-wrap {
    width: 60px !important;
    height: 60px !important;
    right: max(16px, env(safe-area-inset-right)) !important;
    bottom: calc(var(--rd-game-bottom, 16px) + env(safe-area-inset-bottom)) !important
  }

  .rg-badge {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    font-size: 12px !important
  }

  .rg-launcher-close {
    width: 44px !important;
    height: 44px !important;
    top: -44px !important;
    right: 0 !important;
    background: transparent !important;
    box-shadow: none !important
  }

  .rg-launcher-close::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: #fff;
    border: 1px solid #e3e9e8;
    border-radius: 50%;
    z-index: -1
  }

  html.rd-rhino-managed.rd-rhino-invite-open .rg-invite,
  .rg-invite {
    display: none !important
  }
}