/* Original pointer artwork from the reference site's home.css; see images/REFERENCE-ASSETS.md. */
@media (hover: hover) and (pointer: fine) {
  body { cursor: url('https://img.alicdn.com/imgextra/i4/3037771681/TB2LdUrj9tkpuFjy0FhXXXQzFXa_!!3037771681.png'), default; }
  html body a[href],
  html body button:not(:disabled),
  html body summary,
  html body select:not(:disabled),
  html body [role="button"]:not([aria-disabled="true"]),
  html body input[type="checkbox"]:not(:disabled),
  html body input[type="radio"]:not(:disabled) {
    cursor: url('https://img.alicdn.com/imgextra/i4/3037771681/TB2paoVj3JlpuFjSspjXXcT.pXa_!!3037771681.png'), pointer;
  }
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="file"]):not([type="range"]),
  html body textarea,
  html body [contenteditable="true"] { cursor: text; }
}

.site-back-top {
  position: fixed;
  right: 20px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--pink-text);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.site-back-top[hidden] { display: none; }
.site-back-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.site-back-top-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-back-top-character { display: none; }
.site-back-top-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--pink-text);
  box-shadow: var(--shadow);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.site-back-top:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 3px; }
.site-back-top:focus-visible .site-back-top-label { opacity: 1; }
@media (hover: hover) {
  .site-back-top:hover { border-color: var(--schedule-updated-border); background: var(--schedule-updated-bg); }
  .site-back-top:hover .site-back-top-label { opacity: 1; }
}
/* Only use the character where the side gutter can hold it without covering cards. */
@media (min-width: 1440px) and (hover: hover) and (pointer: fine) {
  .site-back-top { right: 8px; bottom: 12px; width: 120px; height: 180px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; }
  .site-back-top:hover { background: transparent; }
  .site-back-top-character { display: block; width: 120px; height: 180px; object-fit: contain; }
  .site-back-top-icon { display: none; }
}
@media (max-width: 767px) {
  .site-back-top { right: 12px; bottom: max(20px, env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .site-back-top-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-back-top, .site-back-top-label { transition: none; transform: none; }
  .site-back-top-label { transform: translateY(-50%); }
}
