:root {
  --ink: #12161c;
  --paper: #f6f3ed;
  --muted: #77736c;
  --gold: #e9b75c;
  --serif: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --scroll-track: #eee9df;
  --scroll-thumb: #c59a4d;
  --scroll-thumb-hover: #a97929;
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.65 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 3px solid var(--scroll-track);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}
::-webkit-scrollbar-corner {
  background: var(--scroll-track);
}
.container {
  width: min(970px, calc(100% - 48px));
  margin: auto;
}
.page-hero {
  height: 410px;
  position: relative;
  color: #fff;
  isolation: isolate;
}
.page-hero > img,
.page-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero__shade {
  z-index: -1;
  background: rgba(10, 13, 17, 0.7);
}
.nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.1em;
}
.brand img {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  object-fit: cover;
}
.brand span {
  font-size: 17px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.17em;
  opacity: 0.65;
}
.back {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.page-hero__content {
  padding-top: 54px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: bold;
  margin: 0 0 13px;
}
.eyebrow span {
  display: inline-block;
  width: 25px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 8px;
}
.page-hero h1 {
  font: normal clamp(40px, 5vw, 62px)/1.1 var(--serif);
  letter-spacing: -0.04em;
  margin: 0 0 15px;
}
.page-hero p:last-child {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.page-hero code {
  color: var(--gold);
}
.downloads {
  padding: 85px 0 90px;
}
.download-intro {
  max-width: 560px;
}
.download-intro h2 {
  font: normal 43px/1.15 var(--serif);
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
.download-intro > p:last-child {
  color: var(--muted);
  margin: 0;
}
.download-list {
  margin-top: 40px;
  border-top: 1px solid rgba(18, 22, 28, 0.14);
}
.download-card {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 6px;
  border-bottom: 1px solid rgba(18, 22, 28, 0.14);
  color: inherit;
  text-decoration: none;
  transition: 0.2s;
}
.download-card:hover {
  padding-left: 12px;
  background: rgba(233, 183, 92, 0.1);
}
.platform {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  font-size: 22px;
  font-weight: bold;
}
.tag {
  margin: 0;
  color: #9a702d;
  font-weight: bold;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.download-card h3 {
  font: normal 25px var(--serif);
  margin: 2px 0;
}
.download-card div p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.download-card > span {
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}
.download-card b {
  font-size: 20px;
  color: #9a702d;
  margin-left: 5px;
}
.help {
  margin-top: 55px;
  background: #e7e0d4;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.help > div {
  font: 27px var(--serif);
  width: 42px;
  height: 42px;
  border: 1px solid #9c7534;
  display: grid;
  place-items: center;
  color: #9c7534;
}
.help p {
  margin: 0;
  flex: 1;
  font-size: 14px;
}
.help a {
  color: var(--ink);
  font-size: 13px;
  font-weight: bold;
}
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.58);
  padding: 27px 0;
  font-size: 12px;
}
.footer .container {
  display: flex;
  justify-content: space-between;
}
.footer p {
  margin: 0;
}
.footer a {
  color: #fff;
  text-decoration: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --scroll-track: #151a21;
    --scroll-thumb: #a77c32;
    --scroll-thumb-hover: #d4a349;
  }
  html {
    color-scheme: dark;
  }
}
@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, 970px);
  }
  .page-hero {
    height: 370px;
  }
  .nav {
    height: 76px;
  }
  .page-hero__content {
    padding-top: 55px;
  }
  .downloads {
    padding: 60px 0;
  }
  .download-intro h2 {
    font-size: 36px;
  }
  .download-card {
    grid-template-columns: 50px 1fr;
    gap: 14px;
  }
  .download-card > span {
    grid-column: 2;
  }
  .platform {
    width: 43px;
    height: 43px;
  }
  .download-card h3 {
    font-size: 21px;
  }
  .help {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .help a {
    margin-left: 59px;
  }
  .footer .container {
    flex-direction: column;
    gap: 5px;
  }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-content: center;
  gap: 18px;
  background: #12161c;
  color: #f6f3ed;
  transition:
    opacity 0.38s ease,
    visibility 0.38s ease;
}
.page-loader--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__ring {
  width: 48px;
  height: 48px;
  margin: auto;
  border: 3px solid rgba(233, 183, 92, 0.18);
  border-top-color: #e9b75c;
  border-right-color: rgba(233, 183, 92, 0.62);
  border-radius: 50%;
  transform: rotate(0deg);
  transform-origin: center;
  will-change: transform;
  -webkit-animation: nivoria-spin 0.7s linear infinite;
  animation: nivoria-spin 0.7s linear infinite;
}
.page-loader span {
  font:
    700 11px/1 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
}
@keyframes nivoria-spin {
  to {
    transform: rotate(360deg);
  }
}
@-webkit-keyframes nivoria-spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.arrival-notices {
  position: fixed;
  z-index: 110;
  top: 20px;
  right: 20px;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 11px;
  pointer-events: none;
}
.arrival-notice {
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 22, 28, 0.1);
  border-left: 3px solid #e9b75c;
  box-shadow: 0 16px 36px rgba(18, 22, 28, 0.16);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-24px);
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
}
.arrival-notice--show {
  opacity: 1;
  transform: translateY(0);
}
.notice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #12161c;
  color: #e9b75c;
  font:
    italic 22px system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.arrival-notice--rest {
  border-left-color: #8194bf;
}
.arrival-notice--rest .notice-icon {
  background: #313c57;
  color: #d9e2ff;
}
.arrival-notice small {
  display: block;
  color: #99732f;
  font:
    700 9px/1 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.15em;
  margin: 2px 0 4px;
}
.arrival-notice--rest small {
  color: #667aa8;
}
.arrival-notice strong {
  display: block;
  color: #12161c;
  font:
    700 14px/1.35 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.arrival-notice p {
  margin: 3px 0 0;
  color: #77736c;
  font:
    12px/1.45 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.arrival-notice button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #85817b;
  font:
    24px/20px system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  cursor: pointer;
}
.arrival-notice button:hover {
  color: #12161c;
}
@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .arrival-notice {
    transition: none;
  }
}
@media (max-width: 600px) {
  .arrival-notices {
    top: 12px;
    right: 16px;
  }
  .arrival-notice {
    padding: 12px;
  }
}

/* Centered, spring-like notifications that descend from above the viewport. */
.arrival-notices {
  top: 16px;
  right: auto;
  left: 50%;
  width: min(430px, calc(100vw - 32px));
  transform: translateX(-50%);
}
.arrival-notice {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(18, 22, 28, 0.22);
  transform: translateY(-135%) scale(0.94);
  transition:
    opacity 0.34s ease,
    transform 0.62s cubic-bezier(0.18, 1.42, 0.36, 1);
}
.arrival-notice--show {
  transform: translateY(0) scale(1);
}
.arrival-notice::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
  pointer-events: none;
}
.notice-icon {
  border-radius: 13px;
}
.arrival-notice button {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  transition:
    background 0.18s,
    color 0.18s;
}
.arrival-notice button:hover {
  background: rgba(18, 22, 28, 0.08);
}
@media (max-width: 600px) {
  .arrival-notices {
    top: 10px;
  }
  .arrival-notice {
    border-radius: 16px;
  }
}

.download-card {
  grid-template-columns: 66px minmax(0, 1fr) auto;
}
.download-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.download-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #12161c;
  color: #12161c;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}
.download-actions a:hover {
  transform: translateY(-2px);
  background: #12161c;
  color: #fff;
}
.download-actions .download-cn {
  border-color: #c8943b;
  background: #c8943b;
  color: #17130c;
}
.download-actions .download-cn:hover {
  background: #e9b75c;
  border-color: #e9b75c;
  color: #17130c;
}
.download-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #77736c;
  font-size: 12px;
}
.download-hint i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8943b;
}
@media (max-width: 700px) {
  .download-card {
    grid-template-columns: 50px 1fr;
  }
  .download-actions {
    grid-column: 2;
    flex-wrap: wrap;
  }
  .download-actions a {
    flex: 1;
  }
  .download-hint {
    grid-column: 1/-1;
  }
  .download-card:hover {
    padding-left: 6px;
  }
}

/* Tablet and phone layout: download routes remain visible, large and distinct. */
@media (min-width: 701px) and (max-width: 1024px) {
  .container {
    width: min(100% - 56px, 860px);
  }
  .page-hero {
    height: 390px;
  }
  .downloads {
    padding: 72px 0 80px;
  }
  .download-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .download-actions {
    grid-column: 2;
  }
  .download-actions a {
    min-height: 42px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 32px, 620px);
  }
  .page-hero {
    height: auto;
    min-height: 440px;
  }
  .page-hero__shade {
    background: linear-gradient(180deg, rgba(10, 13, 17, 0.82), rgba(10, 13, 17, 0.52));
  }
  .nav {
    height: 74px;
  }
  .brand {
    gap: 9px;
  }
  .brand img {
    width: 39px;
    height: 39px;
  }
  .brand span {
    font-size: 14px;
  }
  .back {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 12px;
  }
  .page-hero__content {
    padding: 58px 0 60px;
  }
  .page-hero h1 {
    font-size: clamp(36px, 10vw, 48px);
  }
  .page-hero__content p:last-child {
    font-size: 14px;
  }
  .downloads {
    padding: 58px 0 66px;
  }
  .download-intro h2 {
    font-size: clamp(32px, 9vw, 40px);
  }
  .download-list {
    margin-top: 28px;
  }
  .download-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    padding: 22px 0;
  }
  .download-card:hover {
    padding-left: 0;
  }
  .platform {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }
  .download-card h3 {
    font-size: 20px;
    line-height: 1.25;
  }
  .download-card div p:last-child {
    font-size: 12px;
  }
  .download-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }
  .download-actions a {
    min-height: 44px;
    padding: 8px 6px;
    font-size: 12px;
  }
  .download-hint {
    align-items: flex-start;
    margin-top: 18px;
    line-height: 1.5;
  }
  .download-hint i {
    flex: 0 0 auto;
    margin-top: 6px;
  }
  .help {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    margin-top: 38px;
    padding: 18px;
  }
  .help a {
    grid-column: 1 / -1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 3px 0 0;
    border: 1px solid rgba(18, 22, 28, 0.22);
    text-decoration: none;
  }
  .footer .container {
    align-items: flex-start;
  }
  .arrival-notices {
    width: min(100vw - 20px, 430px);
  }
  .arrival-notice {
    grid-template-columns: 36px minmax(0, 1fr) 22px;
    gap: 10px;
    padding: 11px;
  }
  .notice-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}
