*,
::before,
::after {
  box-sizing: border-box;
}

:root {
  --font: 'PlaypenSans', 'KiwiMaru', sans-serif;
  --size-title: 1.35rem;
  --size-heading: 1.125rem;
  --size-content: 1.075rem;
  --size-small: 1rem;
  --color-title: #5a556d;
  --color-content: #7d7598;
  --color-subtle: #7d759877;
  --color-accent: #f7579c;
  --shadow: 0 0.25rem 0.5rem #5a556d22;

  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.0325em;
  color: var(--color-content);
}

body {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: safe center;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
}

ul {
  list-style: '🖈';
}

li {
  padding: 0 0 0 0.5rem;
}

li::marker {
  font-weight: 700;
}

ol > li::marker {
  font-size: var(--size-small);
}

b {
  font-weight: 600;
}

.nowrap {
  white-space: nowrap;
}

.stroke {
  -webkit-text-stroke: 0.0125em;
}

.large-stroke {
  -webkit-text-stroke: 0.0375em;
}

.language-select {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  height: 2rem;
  padding: 0.75rem 0 0 0;
}

.language-button {
  font-size: var(--size-small);
  text-decoration: none;
  color: var(--color-subtle);
  transition: color 0.125s ease-in-out;
}

.language-button:focus-visible {
  outline: 2px solid var(--color-content);
  outline-offset: -1px;
}

.language-button:hover {
  color: var(--color-content);
}

.cards-container {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 2rem 0;
  padding: 1rem;
  width: 80%;
  min-width: min-content;
  max-width: 64rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.625rem 2.25rem;
  background: #ffffff88;
  backdrop-filter: blur(10px);
  border: 2px solid #ffffffaa;
  border-radius: 1rem;
}

.card.crypto-widget-card {
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  padding: 0.25rem;
  gap: 0.5rem;
}

#crypto-widget {
  overflow-y: hidden;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.25rem;
}

.divider-line {
  width: 100%;
  border-color: var(--color-content);
  opacity: 0.25;
}

.divider-text {
  margin: -0.125rem 0 0 0;
  font-size: 0.825rem;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-content);
}

.donate-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 0.5rem;
  font-weight: 450;
  text-decoration: none;
  white-space: nowrap;
  color: white;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  transition: background-color 0.25s ease-in-out;
}

.donate-button.boosty {
  background: #ff8558;
}

.donate-button.boosty:focus-visible {
  outline: 2px solid #ca6149;
  outline-offset: -1px;
}

.donate-button.boosty:hover {
  background: #ff9169;
}

.donate-button.telegram {
  background: #64acff;
}

.donate-button.telegram:focus-visible {
  outline: 2px solid #4680c2;
  outline-offset: -1px;
}

.donate-button.telegram:hover {
  background: #73b1fa;
}

.donate-button.crypto {
  display: none;
  background: #8793ff;
}

.donate-button.crypto:focus-visible {
  outline: 2px solid #646ec4;
  outline-offset: -1px;
}

.donate-button.crypto:hover {
  background: #8d98ff;
}

.donate-button-logo {
  display: block;
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
}

.donate-button-logo.smaller {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
}

.donate-button-caption {
  margin: 0;
  font-size: var(--size-content);
}

.card-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: 'MochiyPopOne', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  color: var(--color-title);
}

.card-title .subtext {
  font-family: var(--font);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-accent);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.section-title {
  margin: 0;
  font-size: var(--size-title);
  font-weight: 750;
  color: var(--color-title);
}

.paragraph {
  margin: 0;
  font-size: var(--size-content);
  color: var(--color-content);
}

.link {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.link:focus-visible {
  outline: 2px solid var(--color-accent);
}

.link:hover {
  text-decoration: underline;
}

.heading {
  font-size: var(--size-heading);
  font-weight: 700;
}

.heading::before {
  content: '🎀';
  margin-right: 0.325rem;
}

#hi-form {
  display: flex;
  gap: 0.375rem;
}

.input {
  flex-grow: 1;
  padding: 0.25rem 0.5rem;
  font-family: var(--font);
  font-size: var(--size-small);
  font-weight: 500;
  line-height: 1;
  color: var(--color-content);
  border: 2px solid var(--color-subtle);
  border-radius: 0.5rem;
  background: transparent;
}

.input:focus-visible {
  border-color: var(--color-content);
  outline: 2px solid var(--color-content);
  outline-offset: -1px;
}

.input::placeholder {
  font-family: var(--font);
  font-size: var(--size-small);
  line-height: 1;
  letter-spacing: 0.0325em;
  color: var(--color-subtle);
}

.button {
  padding: 0.25rem 0.5rem;
  font-family: var(--font);
  font-size: var(--size-small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-content);
  border: 2px solid var(--color-subtle);
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.125s ease-in-out,
    color 0.125s ease-in-out,
    border-color 0.125s ease-in-out;
}

.button:focus-visible {
  outline: 2px solid var(--color-content);
  outline-offset: -1px;
}

.button:hover {
  border-color: var(--color-content);
  background: var(--color-content);
  color: white;
}

.spoiler summary {
  font-size: var(--size-content);
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
}

.spoiler summary:hover {
  text-decoration: underline;
}

.spoiler summary:focus-visible {
  outline: 2px solid var(--color-accent);
}

.spoiler::details-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0 0 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.spoiler:open::details-content {
  opacity: 1;
}

#payment-method-select {
  display: flex;
  gap: 0.75rem;
  border: none;
  padding: 0;
  margin: 0;
}

#payment-method-select * {
  cursor: pointer;
}

:root:has(#crypto-radio:checked) .stars,
:root:has(#crypto-radio:checked) #stars-note,
:root:has(#stars-radio:checked) .currency,
:root:has(#stars-radio:checked) #currency-select-root {
  display: none;
}

#prices-container {
  display: flex;
  gap: 0.5rem;
}

#prices-container > :first-child {
  flex-grow: 1;
}

#currency-select-root {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 6rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--color-subtle);
}

#currency-select-input {
  flex-grow: 0;
}

#currency-select-info {
  height: 0;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--color-subtle);
}

.stars,
.currency {
  font-size: var(--size-small);
  font-weight: 700;
  white-space: nowrap;
}

.stars.plus::before,
.currency.plus::before {
  display: inline;
  content: '+';
}

#background {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  overflow: hidden;
  background: linear-gradient(135deg, #ffdff2, #ffd4ec);
}

.colon-three {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 5rem;
  font-weight: 500;
  color: #ffd4ec;
  white-space: nowrap;
  letter-spacing: 0.25rem;
  user-select: none;
}

.avatar {
  position: absolute;
  width: var(--width);
  height: var(--height);
  background-image: url('/avatar.jpg');
  background-color: white;
  background-size: cover;
  border-radius: 50%;
}

.avatar.one {
  --width: 10rem;
  --height: 10rem;
  --jump-height: 100%;
  opacity: 1;
  animation:
    bounce-x 10s linear infinite alternate,
    bounce-y 1500ms cubic-bezier(0.5, 0, 1, 1) infinite alternate,
    rotate 20s linear infinite;
  animation-delay: 0s;
}

.avatar.two {
  --width: 14rem;
  --height: 14rem;
  --jump-height: 80%;
  opacity: 0.9;
  animation:
    bounce-x 12s linear infinite alternate,
    bounce-y 1333.33ms cubic-bezier(0.5, 0, 1, 1) infinite alternate,
    rotate 30s linear infinite;
  animation-delay: -10s;
}

.avatar.three {
  --width: 17rem;
  --height: 17rem;
  --jump-height: 60%;
  opacity: 0.8;
  animation:
    bounce-x 30s linear infinite alternate,
    bounce-y 1166.67ms cubic-bezier(0.5, 0, 1, 1) infinite alternate,
    rotate 40s linear infinite;
  animation-delay: -20s;
}

.avatar.four {
  --width: 20rem;
  --height: 20rem;
  --jump-height: 100%;
  opacity: 0.7;
  animation:
    bounce-x 22s linear infinite alternate,
    bounce-y 45s linear infinite alternate,
    rotate 50s linear infinite;
  animation-delay: -70s;
}

.avatar.five {
  --width: 25rem;
  --height: 25rem;
  --jump-height: 90%;
  opacity: 0.6;
  animation:
    bounce-x 45s linear infinite alternate,
    bounce-y 25s cubic-bezier(0.5, 0, 1, 1) infinite alternate,
    rotate 60s linear infinite;
  animation-delay: -10s;
}

.avatar.six {
  --width: max(50%, 30rem);
  aspect-ratio: 1;
  bottom: calc(-5rem);
  left: calc(-5rem);
  opacity: 0.3;
  animation: rotate 90s linear infinite;
  animation-delay: -10s;
}

.avatar.seven {
  --width: max(50%, 30rem);
  aspect-ratio: 1;
  top: calc(-5rem);
  right: calc(-5rem);
  opacity: 0.3;
  animation: rotate 100s linear infinite;
  animation-delay: -70s;
}

#notifications-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 1rem 0;
}

.notification {
  padding: 0.5rem 0.825rem;
  font-size: var(--size-heading);
  color: white;
  background: var(--color-accent);
  border-radius: 0.5rem;
  animation: notification 3s linear;
}

@media (max-width: 74.5rem) {
  .cards-container {
    flex-direction: column;
  }

  .card.crypto-widget-card {
    flex-direction: row;
    align-items: center;
    align-self: stretch;
  }

  #crypto-widget {
    display: none;
  }

  .donate-button {
    display: flex !important;
    flex: 1;
  }

  .divider {
    display: none;
  }
}

@keyframes bounce-x {
  from {
    left: 0;
  }
  to {
    left: calc(100% - var(--width));
  }
}

@keyframes bounce-y {
  from {
    top: calc(100% - var(--jump-height));
  }
  to {
    top: calc(100% - var(--height));
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes notification {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  3% {
    opacity: 1;
    transform: translateY(0);
  }
  97% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

@font-face {
  font-family: 'MochiyPopOne';
  src: url('/mochiy-pop-one.ttf');
}

@font-face {
  font-family: 'PlaypenSans';
  src: url('/playpen-sans.ttf');
}

@font-face {
  font-family: 'KiwiMaru';
  src: url('/kiwi-maru.ttf');
}
