* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    font-family: "Inter", sans-serif;
  }

  body {
    position: relative;
  }

  #CARD {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 335px;
    min-height: 300px;
    padding: 16px;
    border-radius: 15px;
    background: transparent;
    display: none;
  }

  .card-avatar {
    width: 58px;
    height: 58px;
    display: block;
    margin: 0 auto;
    border-radius: 100px;
    object-fit: cover;
    object-position: center;
  }

  .card-avatar-name {
    margin-top: 8.5px;
    font-size: 20px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    color: #3A3B3C;
    text-align: center;
  }

  .card-cta-text {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    text-align: center;
  }

  .nickname-container {
    position: relative;
    width: 100%;
    height: fit-content;
    margin-top: 10px;
    padding-top: 9px;
  }

  .nickname-label {
    position: absolute;
    top: 0;
    left: 11px;
    z-index: 1;
    display: none;
    max-width: 250px;
    max-height: 20px;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-items: center;
    font-size: 13px;
    font-weight: 350;
    font-family: "Inter", sans-serif;
    line-height: 20px;
  }

  .nickname-label.is-visible {
    display: inline-flex;
  }

  .input-nickname {
    width: 100%;
    height: 45px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 350;
    outline: none;
  }

  .input-nickname::placeholder {
    color: var(--input-placeholder-color, #808080);
    opacity: 1;
  }

  .message-container {
    position: relative;
    width: 100%;
    height: fit-content;
    margin-top: 10px;
    padding-top: 9px;
  }

  .message-label {
    position: absolute;
    top: 0;
    left: 11px;
    z-index: 1;
    display: none;
    max-width: 250px;
    max-height: 20px;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-items: center;
    font-size: 13px;
    font-weight: 350;
    font-family: "Inter", sans-serif;
    line-height: 20px;
  }

  .message-label.is-visible {
    display: inline-flex;
  }

  .input-message {
    width: 100%;
    min-height: 85px;
    max-height: 175px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 350;
    line-height: 1.4;
    outline: none;
    resize: none;
    overflow-y: auto;
  }

  .input-message::placeholder {
    color: var(--input-placeholder-color, #808080);
    opacity: 1;
  }

  .message-helper-text {
    margin-top: 2px;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 400;
    font-family: "Inter", sans-serif;
  }

  .amount-container {
    position: relative;
    width: 100%;
    height: fit-content;
    margin-top: 10px;
    margin-bottom: 6px;
    padding-top: 9px;
  }

  .amount-label {
    position: absolute;
    top: 0;
    left: 11px;
    z-index: 1;
    display: none;
    max-width: 250px;
    max-height: 20px;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-items: center;
    font-size: 13px;
    font-weight: 350;
    font-family: "Inter", sans-serif;
    line-height: 20px;
  }

  .amount-label.is-visible {
    display: inline-flex;
  }

  .amount-row {
    position: relative;
    width: 100%;
    height: 45px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
  }

  .representation-monetary {
    position: absolute;
    top: 0;
    left: 12px;
    z-index: 1;
    width: fit-content;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 350;
    line-height: 1;
    pointer-events: none;
  }

  .currency-dropdown {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: calc(12px + var(--representation-monetary-width, 0px));
    height: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: transparent;
    font-size: 13px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }

  .currency-dropdown::placeholder {
    color: transparent;
  }

  .currency-dropdown option {
    color: initial;
  }

  .amount-input {
    position: absolute;
    top: 0;
    left: calc(16px + var(--representation-monetary-width, 0px));
    z-index: 3;
    width: calc(100% - (16px + var(--representation-monetary-width, 0px)));
    height: 100%;
    padding: 0 12px 0 0;
    border: 0;
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 350;
    outline: none;
  }

  .amount-input::placeholder {
    color: var(--input-placeholder-color, #808080);
    opacity: 1;
  }

  .min-value-container {
    width: 100%;
    margin: 12px 0 8px;
    padding: 10px 14px;
    border: 1px solid #DE1738;
    border-radius: 10px;
    display: none;
    align-items: center;
    gap: 6px;
  }

  .min-value-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-color: #DE1738;
    -webkit-mask-image: url("/source/Icon_info.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("/source/Icon_info.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
  }

  .min-value-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }

  .checkout-button {
    --primary-color: #645bff;
    --secondary-color: #fff;
    --hover-color: #111;
    --button-text-color: var(--secondary-color);
    --arrow-width: 10px;
    --arrow-stroke: 2px;
    box-sizing: border-box;
    width: 100%;
    height: 43px;
    margin-top: 13px;
    border: 0;
    border-radius: 12px;
    color: var(--button-text-color);
    padding: 0 1.8em;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    font-size: 14px;
    font-weight: 400;
    transition: 0.2s background;
    cursor: pointer;
  }

  .checkout-button .arrow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .checkout-button .arrow {
    margin-top: 1px;
    width: var(--arrow-width);
    height: var(--arrow-stroke);
    background: var(--primary-color);
    position: relative;
    transition: 0.2s;
  }

  .checkout-button .arrow::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: -3px;
    right: 3px;
    display: inline-block;
    padding: 3px;
    border: solid var(--button-text-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    transform: rotate(-45deg);
    transition: 0.2s;
  }

  .checkout-button:hover {
    background-color: var(--hover-color);
  }

  .checkout-button:hover .arrow {
    background: var(--button-text-color);
  }

  .checkout-button:hover .arrow::before {
    right: 0;
  }

  .checkout-button:disabled,
  .checkout-button:disabled:hover {
    background-color: var(--waiting-color, var(--primary-color));
    cursor: not-allowed;
  }

  .checkout-button:disabled .arrow,
  .checkout-button:disabled:hover .arrow {
    background: var(--waiting-color, var(--primary-color));
  }

  .checkout-button:disabled .arrow::before,
  .checkout-button:disabled:hover .arrow::before {
    right: 3px;
  }

  .checkout-button.is-hidden {
    display: none;
  }

  .is-loading-shower {
    display: none;
    width: 100%;
    height: 43px;
    margin-top: 13px;
    border-radius: 12px;
    background: var(--hover-color, #111111);
    align-items: center;
    justify-content: center;
  }

  .is-loading-shower.is-visible {
    display: flex;
  }

  .button-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: transparent;
    border-radius: 50%;
    border-top-color: var(--button-text-color, #ffffff);
    border-right-color: var(--button-text-color, #ffffff);
    border-bottom-color: var(--button-text-color, #ffffff);
    animation: spin89345 1s linear infinite;
  }

  .button-disclaimer {
    margin-top: 14px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
  }

  .button-disclaimer-link {
    color: inherit;
    text-decoration: underline;
  }

  @keyframes spin89345 {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  @media (max-width: 580px) {
    #CARD {
      inset: 0;
      transform: none;
      width: 100%;
      max-width: none;
      height: 100%;
      min-height: 100%;
      padding: 32px 19px 16px;
      border-radius: 0;
    }

    .input-nickname {
      height: 50px;
      font-size: 16px;
    }

    .input-message {
      font-size: 16px;
    }

    .amount-row {
      height: 50px;
    }

    .amount-input {
      font-size: 16px;
    }
  }

  @media (max-width: 768px) {
    .checkout-button {
      height: 48px;
      font-size: 16px;
    }

    .is-loading-shower {
      height: 48px;
    }

    .button-loader {
      width: 23px;
      height: 23px;
    }
  }

  #Loading {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    background: var(--background-color);
  
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .wheel-and-hamster {
    --dur: 1s;
    position: relative;
    width: 12em;
    height: 12em;
    font-size: 7px;
  }

  .wheel,
  .hamster,
  .hamster div,
  .spoke {
    position: absolute;
  }

  .wheel,
  .spoke {
    border-radius: 50%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .wheel {
    background: radial-gradient(100% 100% at center, hsla(0, 0%, 60%, 0) 47.8%, hsl(0, 0%, 60%) 48%);
    z-index: 2;
  }

  .hamster {
    animation: hamster var(--dur) ease-in-out infinite;
    top: 50%;
    left: calc(50% - 3.5em);
    width: 7em;
    height: 3.75em;
    transform: rotate(4deg) translate(-0.8em, 1.85em);
    transform-origin: 50% 0;
    z-index: 1;
  }

  .hamster__head {
    animation: hamsterHead var(--dur) ease-in-out infinite;
    background: hsl(30, 90%, 55%);
    border-radius: 70% 30% 0 100% / 40% 25% 25% 60%;
    box-shadow:
      0 -0.25em 0 hsl(30, 90%, 80%) inset,
      0.75em -1.55em 0 hsl(30, 90%, 90%) inset;
    top: 0;
    left: -2em;
    width: 2.75em;
    height: 2.5em;
    transform-origin: 100% 50%;
  }

  .hamster__ear {
    animation: hamsterEar var(--dur) ease-in-out infinite;
    background: hsl(0, 90%, 85%);
    border-radius: 50%;
    box-shadow: -0.25em 0 hsl(30, 90%, 55%) inset;
    top: -0.25em;
    right: -0.25em;
    width: 0.75em;
    height: 0.75em;
    transform-origin: 50% 75%;
  }

  .hamster__eye {
    animation: hamsterEye var(--dur) linear infinite;
    background-color: hsl(0, 0%, 0%);
    border-radius: 50%;
    top: 0.375em;
    left: 1.25em;
    width: 0.5em;
    height: 0.5em;
  }

  .hamster__nose {
    background: hsl(0, 90%, 75%);
    border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%;
    top: 0.75em;
    left: 0;
    width: 0.2em;
    height: 0.25em;
  }

  .hamster__body {
    animation: hamsterBody var(--dur) ease-in-out infinite;
    background: hsl(30, 90%, 90%);
    border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%;
    box-shadow:
      0.1em 0.75em 0 hsl(30, 90%, 55%) inset,
      0.15em -0.5em 0 hsl(30, 90%, 80%) inset;
    top: 0.25em;
    left: 2em;
    width: 4.5em;
    height: 3em;
    transform-origin: 17% 50%;
    transform-style: preserve-3d;
  }

  .hamster__limb--fr,
  .hamster__limb--fl {
    clip-path: polygon(0 0, 100% 0, 70% 80%, 60% 100%, 0% 100%, 40% 80%);
    top: 2em;
    left: 0.5em;
    width: 1em;
    height: 1.5em;
    transform-origin: 50% 0;
  }

  .hamster__limb--fr {
    animation: hamsterFRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 80%) 80%, hsl(0, 90%, 75%) 80%);
    transform: rotate(15deg) translateZ(-1px);
  }

  .hamster__limb--fl {
    animation: hamsterFLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 90%) 80%, hsl(0, 90%, 85%) 80%);
    transform: rotate(15deg);
  }

  .hamster__limb--br,
  .hamster__limb--bl {
    border-radius: 0.75em 0.75em 0 0;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 70% 90%, 70% 100%, 30% 100%, 40% 90%, 0% 30%);
    top: 1em;
    left: 2.8em;
    width: 1.5em;
    height: 2.5em;
    transform-origin: 50% 30%;
  }

  .hamster__limb--br {
    animation: hamsterBRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 80%) 90%, hsl(0, 90%, 75%) 90%);
    transform: rotate(-25deg) translateZ(-1px);
  }

  .hamster__limb--bl {
    animation: hamsterBLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 90%) 90%, hsl(0, 90%, 85%) 90%);
    transform: rotate(-25deg);
  }

  .hamster__tail {
    animation: hamsterTail var(--dur) linear infinite;
    background: hsl(0, 90%, 85%);
    border-radius: 0.25em 50% 50% 0.25em;
    box-shadow: 0 -0.2em 0 hsl(0, 90%, 75%) inset;
    top: 1.5em;
    right: -0.5em;
    width: 1em;
    height: 0.5em;
    transform: rotate(30deg) translateZ(-1px);
    transform-origin: 0.25em 0.25em;
  }

  .spoke {
    animation: spoke var(--dur) linear infinite;
    background:
      radial-gradient(100% 100% at center, hsl(0, 0%, 60%) 4.8%, hsla(0, 0%, 60%, 0) 5%),
      linear-gradient(hsla(0, 0%, 55%, 0) 46.9%, hsl(0, 0%, 65%) 47% 52.9%, hsla(0, 0%, 65%, 0) 53%) 50% 50% / 99% 99% no-repeat;
  }

  @keyframes hamster {
    from,
    to {
      transform: rotate(4deg) translate(-0.8em, 1.85em);
    }

    50% {
      transform: rotate(0) translate(-0.8em, 1.85em);
    }
  }

  @keyframes hamsterHead {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(8deg);
    }
  }

  @keyframes hamsterEye {
    from,
    90%,
    to {
      transform: scaleY(1);
    }

    95% {
      transform: scaleY(0);
    }
  }

  @keyframes hamsterEar {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(12deg);
    }
  }

  @keyframes hamsterBody {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(-2deg);
    }
  }

  @keyframes hamsterFRLimb {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(50deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(-30deg) translateZ(-1px);
    }
  }

  @keyframes hamsterFLLimb {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(-30deg);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(50deg);
    }
  }

  @keyframes hamsterBRLimb {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(-60deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(20deg) translateZ(-1px);
    }
  }

  @keyframes hamsterBLLimb {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(20deg);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(-60deg);
    }
  }

  @keyframes hamsterTail {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(30deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(10deg) translateZ(-1px);
    }
  }

  @keyframes spoke {
    from {
      transform: rotate(0);
    }

    to {
      transform: rotate(-1turn);
    }
  }

  #streamer-not-found {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 10000;
    background: var(--background-color);
  
    display: none;
    justify-content: center;
    align-items: center;
  }

  #DONATION-OFFLINE {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 10001;
    background: var(--background-color);

    display: none;
    justify-content: center;
    align-items: center;
  }
  
  .streamer-not-found-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    padding: 20px;
  }
  
  .not-found-face {
    font-size: 36px;
    font-weight: 400;
    color: #3A3B3C;
  }
  
  .not-found-title {
    font-size: 24px;
    font-weight: 600;
    color: #3A3B3C;
  }
  
  .not-found-description {
    font-size: 14px;
    font-weight: 400;
    color: #525252;
    max-width: 360px;
  }

  .donation-offline-content {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    text-align: center;
    padding: 20px;
  }
  
  .donation-offline-icon {
    width: 35px;
    height: 35px;
    display: block;
  }

  .donation-offline-text {
    font-size: 15px;
    font-weight: 500;
    color: #3A3B3C;
    max-width: 360px;
  }
