* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 375px;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-logo {
  position: fixed;
  top: 28px;
  left: 34px;
  z-index: 1100;
  display: block;
  width: 141px;
  opacity: 0.94;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1);
}

.login-site {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #070808;
  color: #fff;
}

.login-floating-words {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.login-floating-word {
  position: absolute;
  top: 0;
  color: rgba(180, 190, 190, 0.28);
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  filter: blur(0.05px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translate3d(-50%, var(--start), 0);
  animation: login-floating-word var(--dur) linear var(--delay) infinite;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
}

.login-floating-word-depth-1 {
  color: rgba(246, 243, 236, 0.22);
  font-size: 15px;
}

.login-floating-word-depth-2 {
  color: rgba(120, 130, 130, 0.25);
  font-size: 17px;
}

.login-vignette,
.login-dim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-vignette-outer {
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.94) 100%);
}

.login-vignette-center {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0) 64%);
}

.login-dim {
  background: rgba(0, 0, 0, 0.2);
}

.login-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1200;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: #f6f3ec;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 1;
  transform: translate3d(52px, 54px, 0) translate(-50%, -50%);
  transition: width 200ms ease-out, height 200ms ease-out, opacity 200ms ease-out;
  will-change: transform;
}

.login-site:has(.download-actions:hover) .login-cursor,
.login-site:has(.download-actions:focus-within) .login-cursor {
  opacity: 0 !important;
}

.login-content {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
}

.login-content-inner {
  display: flex;
  width: min(977px, calc(100vw - 32px));
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

h1 {
  min-height: 188px;
  margin: 0;
  white-space: pre-wrap;
  user-select: none;
  color: #fff;
  font-size: 56px;
  font-weight: 600;
  line-height: 86px;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.16);
}

.login-type-cursor {
  animation: login-type-cursor-blink 1s ease-in-out infinite;
}

.download-actions {
  display: flex;
  width: 100%;
  max-width: 940px;
  flex-direction: row;
  gap: 12px;
  margin-top: 112px;
}

.download-entry {
  position: relative;
  display: flex;
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
  height: 55px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 1);
  background: rgba(246, 243, 236, 0.22);
  padding: 0 14px;
  color: #fff;
  backdrop-filter: blur(2.5px);
  transition: background-color 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out, transform 300ms ease-out;
}

.download-entry:hover,
.download-entry:focus-visible {
  background: rgba(246, 243, 236, 0.32);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
  outline: none;
}

.download-entry:hover .download-arrow {
  transform: translateY(2px);
}

.download-entry.is-loading,
.download-entry.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.download-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 1.35px;
  transform: translateY(1px);
}

.download-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.download-side {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.download-status {
  min-width: 44px;
  color: rgba(246, 243, 236, 0.7);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.download-os-mark {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: #f6f3ec;
}

.download-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 200ms ease-out;
}

.site-footer {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  display: flex;
  width: min(960px, calc(100vw - 32px));
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(246, 243, 236, 0.48);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.site-footer a {
  color: rgba(246, 243, 236, 0.6);
}

.site-footer a:hover {
  color: rgba(246, 243, 236, 0.9);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 74px;
  z-index: 40;
  transform: translate(-50%, 20px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 8, 8, 0.88);
  padding: 11px 16px;
  color: rgba(246, 243, 236, 0.92);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@keyframes login-floating-word {
  0% {
    opacity: 0;
    transform: translate3d(-50%, var(--start), 0);
  }

  12% {
    opacity: 0.72;
  }

  48% {
    opacity: 0.88;
    transform: translate3d(calc(-50% + var(--sway)), 42vh, 0);
  }

  88% {
    opacity: 0.62;
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(-50% - var(--sway)), var(--end), 0);
  }
}

@keyframes login-type-cursor-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (min-width: 761px) and (max-width: 2560px) {
  .site-logo {
    width: 126px;
  }

  h1 {
    min-height: 156px;
    font-size: 46px;
    line-height: 72px;
  }

  .download-actions {
    margin-top: 92px;
  }
}

@media (min-width: 2200px) and (min-resolution: 1.5dppx) {
  .site-logo {
    width: 141px;
  }

  h1 {
    min-height: 188px;
    font-size: 56px;
    line-height: 86px;
  }
}

@media (min-width: 761px) and (max-width: 1920px) and (max-height: 1080px) and (max-resolution: 1.49dppx) {
  .site-logo {
    width: 126px;
  }

  h1 {
    min-height: 132px;
    font-size: 40px;
    line-height: 60px;
  }

  .download-actions {
    margin-top: 76px;
  }
}

@media (max-width: 760px) {
  .site-logo {
    top: 22px;
    left: 22px;
    width: 114px;
  }

  .login-content-inner {
    padding: 0;
  }

  h1 {
    min-height: 148px;
    font-size: 38px;
    line-height: 54px;
  }

  .download-actions {
    max-width: 560px;
    flex-direction: column;
    margin-top: 76px;
  }

  .download-entry {
    flex: 0 0 55px;
    min-height: 55px;
    padding: 0 14px;
  }

  .download-label {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .download-side {
    gap: 10px;
    margin-left: 12px;
  }

  .download-status {
    display: none;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 4px 10px;
    bottom: 14px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-floating-word,
  .login-type-cursor {
    animation: none;
  }

  .download-entry,
  .download-arrow,
  .toast {
    transition: none;
  }
}
