/* Official v0.3.2 increment merged with this server visual rules; GPL-3.0-or-later. */
.eart {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.eart--glyph {
  display: grid;
  place-items: center;
  border-radius: 22%;
  background: radial-gradient(circle at 50% 42%, rgba(78, 216, 175, 0.1), rgba(78, 216, 175, 0) 70%);
  color: rgba(195, 203, 199, 0.55);
}

.eart--glyph .icon {
  width: 58%;
  height: 58%;
}

.eart--pending {
  visibility: hidden;
}

.ewheel {
  position: relative;
}

.ewheel__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.08rem;
  height: 0.56rem;
  min-width: 1.51rem;
  padding: 0px 0.2rem 0px 0.14rem;
  background: rgba(8, 11, 10, 0.85);
  border: 1px solid var(--line-2);
  border-radius: 0.04rem;
  color: var(--text-md);
  font-size: 0.18rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  transition: color var(--t-fast), border-color var(--t-fast), filter var(--t-fast), opacity var(--t-fast);
}

.ewheel__btn .icon {
  width: 0.3rem;
  height: 0.3rem;
  color: var(--mint-500);
}

.ewheel__btn:hover:not(:disabled), .ewheel__btn.is-on {
  color: var(--mint-400);
  border-color: var(--mint-700);
}

.ewheel__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ewheel__btn.has-sprite {
  --ewb-w: max(1.51rem, calc(72px * var(--ui)));
  width: var(--ewb-w);
  height: calc(var(--ewb-w) * 55 / 151);
  min-width: 0px;
  padding: 0px;
  display: block;
  background: var(--ewheel-btn) left bottom / 100% 100% no-repeat;
  border: 0px;
  border-radius: 0px;
  color: rgb(242, 242, 242);
}

.ewheel__btn.has-sprite .ewheel__label {
  position: absolute;
  left: 57%;
  right: 3%;
  top: 0px;
  height: 82%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: calc(var(--ewb-w) * 18 / 151);
  letter-spacing: 0.06em;
  line-height: 1;
}

.ewheel__btn.has-sprite:hover:not(:disabled), .ewheel__btn.has-sprite.is-on {
  color: rgb(255, 255, 255);
  filter: brightness(1.18);
  border: 0px;
}

.ewheel__btn.has-sprite:disabled {
  opacity: 1;
  color: rgba(242, 242, 242, 0.45);
}

.ewheel__btn.is-cooling {
  cursor: default;
}

.ewheel__label {
  white-space: nowrap;
}

.ewheel__panel {
  position: absolute;
  left: -0.15rem;
  bottom: calc(100% + 0.02rem);
  z-index: 5;
  width: 3.13rem;
  height: 2.31rem;
  padding: 0px;
  box-sizing: border-box;
  background: none;
  border: 0px;
  border-radius: 0px;
  box-shadow: none;
  transform-origin: 0.45rem 100%;
  animation: emo-panel-in 160ms var(--ease-out);
  touch-action: pan-y;
  user-select: none;
}

.ewheel__panel::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.13rem;
  width: 2.82rem;
  height: 1.99rem;
  border-radius: 0.06rem;
  background: rgba(19, 19, 19, 0.92);
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0.04rem 0.16rem, rgba(255, 255, 255, 0.07) 0px 0px 0px 1px inset;
}

.ewheel__panel.has-sprite {
  background: var(--ewheel-bg) center / 100% 100% no-repeat;
}

.ewheel__unread {
  position: absolute;
  right: -4px;
  top: -6px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0px 3px;
  border-radius: 8px;
  background: rgb(255, 154, 42);
  color: rgb(42, 20, 4);
  font-size: 11px;
  line-height: 1;
}

.ewheel__friends {
  position: absolute;
  left: 0px;
  bottom: 100%;
  width: 100%;
  min-height: 34px;
  padding: 6px;
  border: 1px solid var(--mint-700);
  background: rgb(12, 32, 24);
  color: var(--mint-400);
  font-style: inherit;
  font-variant: inherit;
  font-weight: inherit;
  font-stretch: inherit;
  line-height: inherit;
  font-family: inherit;
  font-optical-sizing: inherit;
  font-size-adjust: inherit;
  font-kerning: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-language-override: inherit;
  font-size: max(12px, 0.16rem);
  cursor: pointer;
}

.ewheel__friends:focus-visible {
  outline: 2px solid var(--mint-400);
  outline-offset: 2px;
}

.ewheel__panel.has-sprite::before {
  content: none;
}

.ewheel__viewport {
  position: absolute;
  left: 0.205rem;
  top: 0.19rem;
  width: 2.71rem;
  height: 1.78rem;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.ewheel__viewport:active {
  cursor: grabbing;
}

.ewheel__page {
  display: grid;
  grid-template-columns: repeat(3, 0.85rem);
  grid-auto-rows: 0.85rem;
  gap: 0.08rem;
  place-content: start space-between;
  height: 100%;
  animation: emo-page-in 180ms var(--ease-out);
  will-change: transform;
}

.ewheel__page.is-from-right {
  animation-name: emo-page-from-right;
}

.ewheel__page.is-from-left {
  animation-name: emo-page-from-left;
}

.ewheel__page.is-dragging {
  animation: auto ease 0s 1 normal none running none;
  transition: none;
  opacity: 0.92;
}

.ewheel__item {
  position: relative;
  display: grid;
  place-items: center;
  width: 0.85rem;
  height: 0.85rem;
  padding: 0.07rem;
  margin: 0px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.16);
  border: 0px;
  border-radius: 0.08rem;
  color: inherit;
  font-size: 0px;
  flex-direction: initial;
  gap: 0px;
  transition: background-color var(--t-fast), filter var(--t-fast), transform 90ms var(--ease-out);
}

.ewheel__panel.has-cell .ewheel__item {
  background: var(--ewheel-cell) center / 100% 100% no-repeat;
  border-radius: 0px;
}

.ewheel__item:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.26);
  filter: brightness(1.12);
  transform: none;
  border-color: transparent;
}

.ewheel__panel.has-cell .ewheel__item:hover:not(:disabled) {
  background-color: transparent;
  filter: brightness(1.35);
}

.ewheel__item:active:not(:disabled) {
  transform: scale(0.9);
}

.ewheel__item:focus-visible {
  outline: 2px solid var(--mint-500);
  outline-offset: 1px;
}

.ewheel__item:disabled {
  opacity: 0.45;
  cursor: default;
}

.ewheel__dots {
  position: absolute;
  left: 0.15rem;
  width: 2.82rem;
  top: 1.99rem;
  height: 0.12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.ewheel__dot {
  position: relative;
  width: 0.11rem;
  height: 0.12rem;
  padding: 0px;
  border: 0px;
  border-radius: 0.015rem;
  background: rgba(255, 255, 255, 0.28);
  transition: background-color var(--t-fast), transform var(--t-fast);
}

.ewheel__dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.ewheel__dot.is-on {
  background: rgb(255, 255, 255);
  transform: scale(1.12);
}

.ewheel__dot::before {
  content: "";
  position: absolute;
  inset: -0.05rem;
}

.ewheel__nav {
  position: absolute;
  top: 1.94rem;
  width: 0.26rem;
  height: 0.22rem;
  display: grid;
  place-items: center;
  padding: 0px;
  z-index: 1;
  background: none;
  border: 0px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--t-fast), opacity var(--t-fast);
}

.ewheel__nav .icon {
  width: 0.18rem;
  height: 0.18rem;
}

.ewheel__nav.is-prev {
  left: 0.7rem;
}

.ewheel__nav.is-next {
  right: 0.7rem;
}

.ewheel__nav:hover:not(:disabled) {
  color: rgb(255, 255, 255);
}

.ewheel__nav:disabled {
  opacity: 0.18;
  cursor: default;
}

.ebubble {
  --ebubble-ttl: 3000ms;
  --ebubble-age: 0ms;
  position: relative;
  display: block;
  box-sizing: border-box;
  width: calc(1.08 * var(--ebubble-unit, 1rem));
  height: calc(.97 * var(--ebubble-unit, 1rem));
  max-width: none;
  padding: 0px;
  background: none;
  border: 0px;
  clip-path: none;
  color: inherit;
  font-size: 0px;
  white-space: normal;
  filter: none;
  transform-origin: calc(.09 * var(--ebubble-unit, 1rem)) 47%;
  animation: emo-bubble-pop 240ms var(--ease-out) calc(0ms - var(--ebubble-age)) both,
    emo-bubble-out 300ms var(--ease-in-out) calc(var(--ebubble-ttl) - 300ms - var(--ebubble-age)) forwards;
  pointer-events: none;
  z-index: 3;
}

.ebubble::before {
  content: "";
  position: absolute;
  left: calc(.22 * var(--ebubble-unit, 1rem));
  top: calc(.08 * var(--ebubble-unit, 1rem));
  width: calc(.76 * var(--ebubble-unit, 1rem));
  height: calc(.78 * var(--ebubble-unit, 1rem));
  border-radius: calc(.08 * var(--ebubble-unit, 1rem));
  background: rgba(24, 24, 24, 0.86);
  box-shadow: rgba(0, 0, 0, 0.45) 0px 0.02rem 0.08rem;
}

.ebubble::after {
  content: "";
  position: absolute;
  left: calc(.09 * var(--ebubble-unit, 1rem));
  top: calc(47% - .08 * var(--ebubble-unit, 1rem));
  width: calc(.14 * var(--ebubble-unit, 1rem));
  height: calc(.16 * var(--ebubble-unit, 1rem));
  background: rgba(24, 24, 24, 0.86);
  clip-path: polygon(100% 0px, 0px 50%, 100% 100%);
}

.ebubble.has-sprite {
  background: var(--ebubble-bg) center / 100% 100% no-repeat;
}

.ebubble.has-sprite::before, .ebubble.has-sprite::after {
  content: none;
}

.ebubble__icon {
  position: absolute;
  left: calc(.26 * var(--ebubble-unit, 1rem));
  top: calc(.12 * var(--ebubble-unit, 1rem));
  width: calc(.68 * var(--ebubble-unit, 1rem));
  height: calc(.70 * var(--ebubble-unit, 1rem));
  display: grid;
  place-items: center;
}

.ebubble .eart {
  width: 100%;
  height: 100%;
}

@keyframes emo-panel-in {
  0% {
    opacity: 0;
    transform: translateY(0.06rem) scale(0.96);
  }
}

@keyframes emo-page-in {
  0% {
    opacity: 0;
  }
}

@keyframes emo-page-from-right {
  0% {
    opacity: 0.2;
    transform: translateX(45%);
  }
}

@keyframes emo-page-from-left {
  0% {
    opacity: 0.2;
    transform: translateX(-45%);
  }
}

@keyframes emo-bubble-pop {
  0% {
    opacity: 0;
    scale: 0.35;
  }

  60% {
    opacity: 1;
    scale: 1.1;
  }

  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes emo-bubble-out {
  100% {
    opacity: 0;
    scale: 0.92;
  }
}

@media (pointer: coarse) {
  .ewheel__btn.has-sprite {
    --ewb-w: max(1.51rem, calc(96px * var(--ui)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ewheel__panel, .ewheel__page, .ewheel__page.is-from-right, .ewheel__page.is-from-left {
    animation: auto ease 0s 1 normal none running none;
  }

  .ebubble {
    animation: emo-bubble-out 1ms linear calc(var(--ebubble-ttl) - 1ms - var(--ebubble-age)) forwards;
  }
}
