@font-face {
  font-family: "Funnel Display";
  src: url("/font/FunnelDisplay-LatinExt-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 800;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Funnel Display";
  src: url("/font/FunnelDisplay-Latin-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 800;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA-02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Alimama FangYuanTi";
  src: url("/font/AlimamaFangYuanTiVF-Thin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  color-scheme: dark;
  font-family: "Funnel Display", -apple-system, sans-serif;
  background: #070769;
  color: #dedede;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: radial-gradient(circle at 77% 45%, #0d0da8 0, #070769 58%);
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  background: url("/img/bg/noise120.gif") repeat;
  background-size: 180px 177px;
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid #dedede;
  outline-offset: 5px;
}

.closed-skip {
  position: absolute;
  z-index: 10;
  top: -100px;
  left: 24px;
  padding: 10px 16px;
  background: #a855f7;
  color: #070769;
}

.closed-skip:focus { top: 16px; }

.closed-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.closed-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 48px) clamp(24px, 5vw, 90px);
}

.closed-logo,
.closed-logo svg {
  display: block;
  width: clamp(100px, 9vw, 144px);
  height: auto;
  fill: #dedede;
}

.closed-languages {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 22px);
}

.closed-languages a {
  color: rgba(222, 222, 222, 0.72);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.closed-languages a:hover,
.closed-languages a[aria-current="page"] {
  color: #dedede;
  text-decoration: underline;
  text-decoration-color: #a855f7;
  text-underline-offset: 6px;
}

.closed-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  width: min(90vw, 1520px);
  min-height: calc(100svh - 180px);
  margin: 0 auto;
  padding: clamp(44px, 7vh, 120px) 0 clamp(72px, 10vh, 150px);
}

.closed-content {
  position: relative;
  z-index: 1;
  max-width: 890px;
}

.closed-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(32px, 5vh, 70px);
  color: #a855f7;
  font-size: clamp(13px, 1vw, 17px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closed-status span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.closed-content h1 {
  max-width: 980px;
  margin: 0;
  color: #dedede;
  font-size: clamp(64px, 7.6vw, 132px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
}

html[lang="zh-Hans"] .closed-content h1 {
  font-family: "Alimama FangYuanTi", sans-serif;
  font-size: clamp(48px, 6.7vw, 106px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.closed-message {
  max-width: 670px;
  margin: clamp(24px, 3vw, 46px) 0 0;
  font-size: clamp(19px, 1.6vw, 26px);
  line-height: 1.45;
}

html[lang="zh-Hans"] .closed-message,
html[lang="zh-Hans"] .closed-redirect,
html[lang="zh-Hans"] .closed-status {
  font-family: "Alimama FangYuanTi", sans-serif;
}

.closed-action {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(34px, 4vw, 62px);
  padding: 18px 28px;
  border: 1px solid #a855f7;
  border-radius: 999px;
  background: #a855f7;
  color: #070769;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.closed-action:hover {
  background: transparent;
  color: #dedede;
  transform: translateY(-3px);
}

.closed-action span { font-size: 1.25em; }

.closed-redirect {
  margin: 16px 0 0;
  color: rgba(222, 222, 222, 0.65);
  font-size: 14px;
  line-height: 1.4;
}

.closed-crest {
  position: relative;
  display: grid;
  place-items: center;
  width: min(33vw, 510px);
  aspect-ratio: 1;
  justify-self: center;
  color: #a855f7;
}

.closed-crest::before,
.closed-crest::after {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 20%;
  content: "";
  background: currentColor;
  mask: url("/img/laurels.svg") center / contain no-repeat;
  -webkit-mask: url("/img/laurels.svg") center / contain no-repeat;
}

.closed-crest::before { left: 5%; }
.closed-crest::after { right: 5%; transform: scaleX(-1); }

.closed-crest span {
  color: rgba(168, 85, 247, 0.76);
  font-size: clamp(42px, 4.2vw, 78px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-align: center;
}

@media (max-width: 960px) {
  .closed-main { grid-template-columns: 1fr; }
  .closed-crest {
    position: absolute;
    z-index: 0;
    right: -8vw;
    bottom: -4vw;
    width: min(65vw, 500px);
    opacity: 0.22;
  }
}

@media (max-width: 680px) {
  .closed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 24px 0;
  }
  .closed-languages {
    width: calc(100vw - 48px);
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .closed-main {
    width: calc(100% - 48px);
    min-height: calc(100svh - 152px);
    align-items: start;
    padding: 64px 0 120px;
  }
  .closed-status { margin-bottom: 30px; }
  .closed-content h1 { font-size: clamp(52px, 13vw, 78px); }
  html[lang="zh-Hans"] .closed-content h1 { font-size: clamp(36px, 10.5vw, 56px); }
  .closed-message { font-size: 19px; }
  .closed-action { margin-top: 34px; }
  .closed-crest { right: -22vw; bottom: -12vw; width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
  .closed-action { transition: none; }
}
