html.landing-page {
  background: #05060d;
  --fs-root: 16px;
  --fs-content-base: 16px;
  --background: #000;
  --text: #fff;
  --text-banner: #fff;
  --text-banner-theme: rgba(255, 255, 255, 0.72);
}

html.landing-page *,
html.landing-page *::before,
html.landing-page *::after {
  box-sizing: border-box;
}

html.landing-page,
html.landing-page body {
  height: 100%;
  margin: 0;
}

html.landing-page body > main {
  display: block;
  min-height: 100%;
}

html.landing-page {
  font-family: "LXGW WenKai Screen", system-ui, "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--fs-root);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.landing-page body {
  background: #000;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.landing-page button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

html.landing-page a {
  color: inherit;
  text-decoration: none;
}

.l_cover {
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--text);
}

.wiki-cover-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.wiki-cover-background canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wiki-cover-background-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.28) 68%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(to bottom, transparent 0, transparent 78%, #000 100%);
}

.wiki-cover-layout {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 4rem));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  color: var(--text-banner);
}

.wiki-navbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: max(1.75rem, env(safe-area-inset-top));
}

.wiki-navbar-home {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wiki-cover-content {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.wiki-cover-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.shorekeeper-figure-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shorekeeper-float 9s ease-in-out infinite;
  pointer-events: none;
}

.shorekeeper-figure {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  filter: drop-shadow(0 0 42px rgba(120, 190, 255, 0.22));
}

.shorekeeper-sticker {
  position: absolute;
  z-index: 4;
  right: max(1.5rem, env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  width: 112px;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 8px 16px rgba(80, 160, 255, 0.28));
  animation: shorekeeper-float 10s ease-in-out infinite reverse;
}

.shorekeeper-card {
  width: 216px;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(-6deg);
  align-self: flex-start;
  margin-left: 2rem;
}

@keyframes shorekeeper-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.wiki-cover-copyblock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 480px;
  max-height: 100%;
  overflow: auto;
  justify-self: end;
  padding: 1rem 0 5.5rem;
}

.wiki-cover-release {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--text-banner-theme) 50%, transparent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cover-title {
  margin: 0;
  color: var(--text-banner);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  text-shadow:
    0 0 16px color-mix(in srgb, var(--text-banner-theme) 30%, transparent),
    0 0 32px color-mix(in srgb, var(--text-banner-theme) 20%, transparent),
    0 0 64px color-mix(in srgb, var(--text-banner-theme) 10%, transparent);
}

.description {
  margin: 0;
  max-width: 28em;
  color: var(--text-banner-theme);
  line-height: 1.75;
  font-size: 1.05rem;
  text-shadow: 0 0 8px color-mix(in srgb, var(--text-banner-theme) 40%, transparent);
}

.wiki-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wiki-cover-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid color-mix(in srgb, var(--text-banner-theme) 50%, transparent);
  background: color-mix(in srgb, var(--text-banner-theme) 18%, transparent);
  backdrop-filter: blur(12px);
}

.wiki-cover-actions .button svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.wiki-cover-actions a.button {
  cursor: pointer;
}

.wiki-cover-actions a.button:hover {
  background: color-mix(in srgb, var(--text-banner-theme) 42%, transparent);
}

.wiki-cover-actions .button.wiki-cover-source {
  border-color: var(--text-banner);
  color: #000;
  background: var(--text-banner);
}

.wiki-cover-actions a.button.wiki-cover-source:hover {
  background: #fff;
}

.wiki-cover-terminal {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  color: var(--text-banner-theme);
  background: color-mix(in srgb, var(--text-banner-theme) 16%, transparent);
  backdrop-filter: blur(12px) brightness(0.85);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.wiki-cover-terminal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.wiki-cover-terminal-tabs {
  display: flex;
  gap: 0.4rem;
}

.wiki-cover-terminal-tabs button {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  opacity: 0.5;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

.wiki-cover-terminal-tabs button.active {
  opacity: 1;
  background: color-mix(in srgb, var(--text-banner-theme) 20%, transparent);
}

.wiki-cover-terminal pre {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wiki-cover-terminal pre code span {
  display: block;
}

.wiki-cover-terminal pre code span::before {
  content: "✦ ";
  color: #8ca5ff;
}

.wiki-cover-copy {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  color: var(--text-banner);
  font-family: inherit;
  font-size: 13px;
  background: color-mix(in srgb, var(--text-banner-theme) 18%, transparent);
}

.wiki-cover-copy:hover {
  background: color-mix(in srgb, var(--text-banner-theme) 42%, transparent);
}

@media screen and (max-width: 1100px) and (min-width: 901px) {
  .wiki-cover-layout {
    width: calc(100% - 3rem);
  }

  .cover-title {
    font-size: clamp(2.6rem, 4.4vw, 4rem);
  }

  .shorekeeper-card {
    width: 190px;
    margin-left: 1.25rem;
  }
}

@media screen and (max-width: 900px) {
  html.landing-page,
  html.landing-page body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
  }

  .l_cover {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
  }

  .wiki-cover-background,
  .wiki-cover-background canvas,
  .wiki-cover-background-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .wiki-cover-background-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 42%, #000 78%);
  }

  .wiki-cover-layout {
    width: calc(100% - 3.5rem);
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    min-height: 0;
  }

  .wiki-navbar {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .wiki-navbar-home {
    display: block;
    width: 100%;
    text-align: center;
    letter-spacing: 0.12em;
  }

  .wiki-cover-content {
    display: block;
    flex: none;
    min-height: 0;
  }

  .wiki-cover-stage {
    position: relative;
    width: 100%;
    height: 42vh;
    min-height: 240px;
    max-height: 360px;
    margin: 0 auto 1rem;
    overflow: hidden;
  }

  .shorekeeper-figure-wrap {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    animation: none;
  }

  .shorekeeper-figure {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .wiki-cover-copyblock {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 0 0 6rem;
    gap: 0.85rem;
  }

  .wiki-cover-release,
  .cover-title,
  .description,
  .wiki-cover-actions,
  .shorekeeper-card,
  .wiki-cover-terminal {
    margin-bottom: 0;
  }

  .cover-title {
    font-size: 2.25rem;
    line-height: 1.25;
    letter-spacing: 0;
    word-break: keep-all;
  }

  .description {
    max-width: 22em;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .wiki-cover-actions {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .wiki-cover-actions .button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
  }

  .shorekeeper-card {
    display: block;
    width: 150px;
    max-width: 48%;
    height: auto;
    margin: 0.15rem auto 0.25rem;
    transform: none;
  }

  .wiki-cover-terminal {
    width: 100%;
    margin-top: 0;
    box-sizing: border-box;
    text-align: left;
  }

  .wiki-cover-terminal-toolbar {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .shorekeeper-sticker {
    width: 72px;
    right: 20px;
    bottom: 20px;
  }
}

@media screen and (max-width: 500px) {
  .wiki-cover-layout {
    width: calc(100% - 3rem);
  }

  .wiki-navbar {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding-top: 1.25rem;
  }

  .wiki-cover-stage {
    height: 38vh;
    min-height: 220px;
    max-height: 300px;
  }

  .cover-title {
    font-size: 2rem;
  }

  .wiki-cover-actions .button {
    padding: 0.45rem 1rem;
  }
}

@media screen and (max-height: 760px) and (min-width: 901px) {
  .l_cover {
    min-height: 0;
  }

  .wiki-cover-copyblock {
    gap: 0.75rem;
    padding: 0.5rem 0 4.5rem;
  }

  .cover-title {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
  }

  .description {
    font-size: 0.95rem;
  }

  .shorekeeper-card {
    width: 168px;
  }

  .wiki-cover-terminal {
    padding: 0.7rem 0.85rem;
  }
}

@media screen and (orientation: portrait) {
  .wiki-navbar,
  .wiki-navbar-home {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wiki-cover-background canvas {
    display: none;
  }

  .shorekeeper-figure-wrap,
  .shorekeeper-sticker {
    animation: none;
  }
}

@keyframes landing-vt-out {
  to {
    opacity: 0;
  }
}

@keyframes landing-vt-in {
  from {
    opacity: 0;
  }
}

::view-transition-old(root) {
  animation: 360ms ease both landing-vt-out;
}

::view-transition-new(root) {
  animation: 480ms ease both landing-vt-in;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
