:root {
  color-scheme: dark;
  --ink: #f4edf8;
  --muted: #c8b7d6;
  --soft: #9e8aaa;
  --bg: #090410;
  --bg-2: #13091f;
  --panel: rgba(28, 12, 43, .82);
  --panel-2: rgba(15, 7, 24, .88);
  --line: rgba(201, 118, 255, .30);
  --line-hot: rgba(101, 247, 180, .52);
  --violet: #b650ff;
  --green: #65f7b4;
  --pink: #ff4da6;
  --amber: #f6c35c;
  --max: 1140px;
  --rail: 228px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(101, 247, 180, .07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(circle at 86% 12%, rgba(255, 77, 166, .16), transparent 32rem),
    radial-gradient(circle at 16% 4%, rgba(182, 80, 255, .26), transparent 34rem),
    linear-gradient(180deg, #13091f 0%, #07030c 52%, #12071d 100%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  line-height: 1.75;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 4, 16, .96) 0, rgba(9, 4, 16, .88) 228px, transparent 228px);
  z-index: -1;
}

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

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 8em;
  font-size: clamp(42px, 7.2vw, 88px);
  font-weight: 950;
  color: var(--green);
  background: linear-gradient(135deg, var(--green) 0%, #d8ffe9 38%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(101, 247, 180, .20), 0 12px 28px rgba(0, 0, 0, .42);
}

h2 {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 950;
  color: var(--amber);
  background: linear-gradient(135deg, var(--amber) 0%, #ffe7a9 42%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 16px rgba(246, 195, 92, .16);
}

h3 {
  color: #fff;
  font-size: 22px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 30;
  padding: 10px 14px;
  color: #06120d;
  background: var(--green);
  font-weight: 900;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail);
  min-height: 86px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(9, 4, 16, .82);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  color: #fff;
  transition: transform .2s ease, filter .2s ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 18px rgba(101, 247, 180, .18));
}

.brand img {
  width: 36px;
  height: 36px;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
}

.side-nav {
  position: fixed;
  top: 86px;
  left: 0;
  bottom: 0;
  z-index: 18;
  width: var(--rail);
  padding: 18px;
  background: rgba(9, 4, 16, .82);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  overflow: hidden;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.side-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(101, 247, 180, .18), rgba(246, 195, 92, .08));
  opacity: 0;
  transition: opacity .22s ease;
}

.side-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(101, 247, 180, .44);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
  transform: scale(.92);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease, border-color .22s ease;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  color: #fff;
  border-color: var(--line-hot);
  background: rgba(101, 247, 180, .08);
  transform: translateX(4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24), inset 0 0 0 1px rgba(101, 247, 180, .10);
}

.side-nav a:hover::before,
.side-nav a:focus-visible::before {
  opacity: 1;
}

.side-nav a:hover::after,
.side-nav a:focus-visible::after {
  transform: scale(1);
  opacity: 1;
}

.side-nav span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.side-nav .download-link {
  margin-top: 20px;
  display: flex;
  width: 100%;
  align-self: auto;
  justify-content: center;
  color: #06120d;
  background: linear-gradient(135deg, var(--green), #d8ffe9);
  border-color: rgba(101, 247, 180, .64);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .20), 0 0 18px rgba(101, 247, 180, .16);
}

.side-nav .download-link:hover,
.side-nav .download-link:focus-visible {
  transform: none;
  color: #06120d;
  border-color: rgba(101, 247, 180, .64);
  background: linear-gradient(135deg, var(--green), #d8ffe9);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .20), 0 0 18px rgba(101, 247, 180, .16);
}

.side-nav .download-link:hover::before,
.side-nav .download-link:focus-visible::before,
.side-nav .download-link:hover::after,
.side-nav .download-link:focus-visible::after {
  opacity: 0;
  transform: none;
}

main {
  margin-left: var(--rail);
}

.opening {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: 28px;
  padding: 8vh max(30px, calc((100vw - var(--rail) - var(--max)) / 2)) 52px;
  isolation: isolate;
}

.opening::before {
  content: "";
  position: absolute;
  inset: auto 10% 14% 6%;
  height: 120px;
  background: radial-gradient(circle, rgba(101, 247, 180, .18) 0%, rgba(101, 247, 180, 0) 72%);
  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
}

.opening-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #090410;
}

.opening-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 3, 12, .92) 0%, rgba(9, 4, 16, .64) 42%, rgba(9, 4, 16, .88) 100%),
    linear-gradient(0deg, rgba(9, 4, 16, 1) 0%, transparent 34%);
}

.opening-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.opening-copy {
  max-width: 820px;
  align-self: center;
}

.opening-copy > * {
  animation: hero-rise .7s ease both;
}

.opening-copy > *:nth-child(2) {
  animation-delay: .08s;
}

.opening-copy > *:nth-child(3) {
  animation-delay: .16s;
}

.opening-copy > *:nth-child(4) {
  animation-delay: .24s;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.6px;
}

.eyebrow,
.section-kicker,
.opening-facts dt,
.updates time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background-image: url("img/friend-sprite.svg");
  background-repeat: no-repeat;
  background-size: 72px 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 10px rgba(255, 255, 255, .06);
}

.eyebrow .mini-icon,
.section-kicker .mini-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  background-size: 80px 20px;
}

.lead {
  max-width: 760px;
  margin-top: 24px;
  color: #f2e9fb;
  font-size: clamp(18px, 2.1vw, 24px);
}

.opening-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.text-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 950;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.primary-action::before,
.text-action::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, .24) 50%, rgba(255, 255, 255, 0) 82%);
  transform: translateX(-140%);
  transition: transform .6s ease;
}

.primary-action {
  color: #06120d;
  background: linear-gradient(135deg, var(--green), #d8ffe9);
  box-shadow: 0 0 34px rgba(101, 247, 180, .28);
}

.text-action {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(22, 10, 34, .62);
}

.primary-action:hover,
.primary-action:focus-visible,
.text-action:hover,
.text-action:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .34), 0 0 28px rgba(182, 80, 255, .20);
}

.primary-action:hover::before,
.primary-action:focus-visible::before,
.text-action:hover::before,
.text-action:focus-visible::before {
  transform: translateX(140%);
}

.opening-facts {
  margin: 0;
  display: grid;
  gap: 10px;
  align-self: center;
}

.opening-facts div {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 7, 24, .70);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.opening-facts div::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(246, 195, 92, .22) 0%, rgba(246, 195, 92, 0) 70%);
  pointer-events: none;
}

.opening-facts div:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 195, 92, .36);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .30), 0 0 22px rgba(246, 195, 92, .12);
  background: rgba(22, 10, 34, .84);
}

.opening-facts dt {
  color: var(--soft);
  font-size: 13px;
}

.opening-facts dd {
  margin: 2px 0 0;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.section,
.chapter-strip,
.guide-board,
.download-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 30px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 34px;
  align-items: start;
}

.two-column p {
  margin-top: 18px;
  font-size: 18px;
}

.note-panel {
  padding: 26px;
  border-left: 4px solid var(--green);
  background: linear-gradient(135deg, rgba(101, 247, 180, .12), rgba(182, 80, 255, .12));
  border-radius: 8px;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.note-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .22);
}

.note-panel p {
  font-size: 16px;
}

.strip-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.strip-track article {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.strip-track article::after,
.gallery-mosaic figure::after,
.updates article::after,
.faq details::after,
.guide-content::after,
.download-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .04);
  opacity: 0;
  transition: opacity .22s ease;
}

.strip-track article:hover {
  transform: translateY(-6px);
  border-color: var(--line-hot);
  box-shadow: var(--shadow);
}

.strip-track article:hover::after,
.gallery-mosaic figure:hover::after,
.updates article:hover::after,
.faq details:hover::after,
.guide-content:hover::after,
.download-panel:hover::after {
  opacity: 1;
}

.strip-track img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: rgba(9, 4, 16, .88);
}

.strip-track article div {
  padding: 20px;
}

.strip-track span,
.ledger span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.strip-track h3 {
  margin-top: 6px;
}

.strip-track p {
  margin-top: 10px;
}

.feature-ledger h2,
.gallery-section h2,
.update-section h2,
.faq h2 {
  margin-bottom: 28px;
}

.ledger {
  border-top: 1px solid var(--line);
}

.ledger article {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .22s ease, border-color .22s ease, background .22s ease;
}

.ledger article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), var(--green));
  border-radius: 999px;
  opacity: 0;
  transform: scaleY(.3);
  transition: opacity .22s ease, transform .22s ease;
}

.ledger article:hover {
  padding-left: 14px;
  border-color: rgba(246, 195, 92, .32);
  background: linear-gradient(90deg, rgba(246, 195, 92, .06), rgba(246, 195, 92, 0));
}

.ledger article:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.ledger p {
  font-size: 18px;
}

.guide-board {
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr);
  gap: 34px;
  align-items: stretch;
}

.guide-image {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.guide-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: contain;
  background: rgba(9, 4, 16, .88);
}

.guide-content {
  position: relative;
  padding: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(28, 12, 43, .86), rgba(10, 4, 17, .90));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.guide-content:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 195, 92, .34);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .30), 0 0 28px rgba(246, 195, 92, .08);
}

.guide-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.guide-list li {
  position: relative;
  padding: 0 0 24px 46px;
  counter-increment: step;
}

.guide-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #06120d;
  background: var(--green);
  border-radius: 50%;
  font-weight: 950;
}

.guide-list strong {
  color: #fff;
  font-size: 20px;
}

.guide-list p {
  margin-top: 8px;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-mosaic figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.gallery-mosaic figure:hover {
  transform: translateY(-6px);
  border-color: rgba(246, 195, 92, .34);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .30);
}

.gallery-mosaic .large {
  grid-row: span 3;
}

.gallery-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(9, 4, 16, .88);
}

.updates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.updates article,
.faq details {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(28, 12, 43, .82), rgba(12, 5, 20, .88));
}

.updates article {
  padding: 22px;
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.updates article:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 195, 92, .40);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .30);
  background: linear-gradient(180deg, rgba(35, 16, 53, .90), rgba(16, 8, 27, .94));
}

.updates time {
  color: var(--amber);
  font-size: 13px;
  font-weight: 950;
}

.updates h3 {
  margin-top: 8px;
}

.updates p,
.updates ul {
  margin-top: 10px;
}

.updates ul {
  padding-left: 20px;
  color: var(--muted);
}

.updates li + li {
  margin-top: 6px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq details {
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.faq summary {
  position: relative;
  cursor: pointer;
  padding: 18px 20px;
  color: #fff;
  font-weight: 950;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--green);
}

.faq summary:hover,
.faq summary:focus-visible {
  background: linear-gradient(90deg, rgba(101, 247, 180, .10), rgba(246, 195, 92, .05));
}

.faq details[open] summary::after {
  content: "-";
}

.faq details:hover,
.faq details[open] {
  transform: translateY(-3px);
  border-color: rgba(101, 247, 180, .38);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .24);
}

.faq details p {
  padding: 0 20px 20px;
}

.download-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
  border: 1px solid var(--line-hot);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(9, 4, 16, .96), rgba(27, 12, 42, .90));
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.download-panel::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 247, 180, .16) 0%, rgba(101, 247, 180, 0) 70%);
  pointer-events: none;
}

.download-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 195, 92, .44);
  box-shadow: 0 24px 52px rgba(0, 0, 0, .34), 0 0 30px rgba(101, 247, 180, .10);
}

.download-panel p {
  max-width: 680px;
  margin-top: 14px;
  font-size: 18px;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 30px 34px;
}

.page-hero-inner {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(9, 4, 16, .94), rgba(27, 12, 42, .88)),
    radial-gradient(circle at 100% 0, rgba(101, 247, 180, .14), transparent 32%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.page-hero-inner::after {
  content: "";
  position: absolute;
  inset: auto -8% -24% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 195, 92, .14) 0%, rgba(246, 195, 92, 0) 70%);
  pointer-events: none;
}

.page-hero p {
  margin-top: 18px;
  max-width: 860px;
  font-size: 18px;
}

.page-hero-inner:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 195, 92, .34);
  box-shadow: 0 28px 62px rgba(0, 0, 0, .32), 0 0 28px rgba(101, 247, 180, .08);
}

.page-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 30px 88px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.page-main {
  display: grid;
  gap: 18px;
}

.page-card,
.site-map-links a,
.page-side {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 12, 43, .82), rgba(12, 5, 20, .88));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.page-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.page-card::after,
.page-side::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .04);
  opacity: 0;
  transition: opacity .22s ease;
}

.page-card:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 195, 92, .40);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .30);
  background: linear-gradient(180deg, rgba(35, 16, 53, .90), rgba(16, 8, 27, .94));
}

.page-card:hover::after,
.page-side:hover::after {
  opacity: 1;
}

.page-card h2,
.page-card h3 {
  margin-bottom: 12px;
}

.page-card p + p,
.page-card ul,
.page-card ol {
  margin-top: 12px;
}

.page-card ul,
.page-card ol {
  padding-left: 20px;
  color: var(--muted);
}

.page-card li + li {
  margin-top: 8px;
}

.page-side {
  position: sticky;
  overflow: hidden;
  position: sticky;
  top: 104px;
  padding: 20px;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.page-side:hover {
  transform: translateY(-4px);
  border-color: rgba(101, 247, 180, .38);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .28);
  background: linear-gradient(180deg, rgba(34, 15, 52, .88), rgba(14, 7, 24, .92));
}

.page-side h3 {
  margin-bottom: 12px;
}

.page-side nav,
.page-side .side-list {
  display: grid;
  gap: 8px;
}

.page-side a {
  display: block;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.page-side a:hover,
.page-side a:focus-visible {
  transform: translateX(3px);
  color: #fff;
  border-color: rgba(101, 247, 180, .38);
  background: rgba(101, 247, 180, .08);
}

.site-map-links {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 30px 88px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-map-links a {
  display: block;
  padding: 22px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.site-map-links a:hover,
.site-map-links a:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(101, 247, 180, .40);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .28);
  background: linear-gradient(180deg, rgba(35, 16, 53, .90), rgba(16, 8, 27, .94));
}

.site-map-links b {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
}

.site-map-links span {
  color: var(--muted);
  font-size: 15px;
}

.footer-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-links a {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  transform: translateY(-2px);
  color: #06120d;
  border-color: var(--green);
  background: var(--green);
}

.friend-links,
.site-footer {
  margin-left: var(--rail);
}

.friend-links {
  padding: 42px 30px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 3, 14, .78);
}

.friend-links h2 {
  font-size: 28px;
}

.friend-links div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.friend-links a {
  position: relative;
  min-height: 42px;
  padding: 8px 16px 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  font-weight: 850;
  overflow: hidden;
  transition: transform .22s ease, color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.friend-links a span:last-child {
  text-align: left;
}

.link-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background-color: rgba(255, 255, 255, .10);
  background-image: url("img/friend-sprite.svg");
  background-repeat: no-repeat;
  background-size: 112px 28px;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, .08);
}

.icon-dungeon { background-position: 0 0; }
.icon-angel { background-position: -28px 0; }
.icon-mansion { background-position: -56px 0; }
.icon-world { background-position: -84px 0; }

.friend-links a:hover,
.friend-links a:focus-visible {
  transform: translateY(-3px);
  color: #06120d;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 18px 32px rgba(0, 0, 0, .22), 0 0 22px rgba(101, 247, 180, .18);
}

.site-footer {
  padding: 32px 30px 44px;
  text-align: center;
  background: rgba(7, 3, 12, .92);
}

.site-footer p {
  margin: 6px 0;
  font-size: 14px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  :root {
    --rail: 0px;
  }

  body::before {
    display: none;
  }

  .site-header {
    width: 100%;
    min-height: 72px;
    justify-content: space-between;
    border-right: 0;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(24, 10, 37, .88);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(101, 247, 180, .48);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .24);
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
  }

  .nav-toggle.is-open span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .side-nav {
    top: 72px;
    left: 16px;
    right: 16px;
    bottom: auto;
    width: auto;
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 4, 16, .98);
  }

  .side-nav.is-open {
    display: block;
  }

  main,
  .friend-links,
  .site-footer {
    margin-left: 0;
  }

  .opening {
    min-height: auto;
    padding-top: 150px;
    grid-template-columns: 1fr;
  }

  .opening-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .two-column,
  .guide-board,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .strip-track,
  .updates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-image img {
    min-height: auto;
  }

  .page-side {
    position: static;
  }

  .site-map-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .opening,
  .section,
  .chapter-strip,
  .guide-board,
  .download-panel,
  .page-hero,
  .page-layout,
  .site-map-links {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 18px;
  }

  .opening-actions,
  .opening-actions a,
  .download-panel,
  .download-panel .primary-action {
    width: 100%;
  }

  .opening-facts,
  .strip-track,
  .updates {
    grid-template-columns: 1fr;
  }

  .ledger article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-content {
    padding: 24px;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-mosaic .large {
    grid-row: auto;
  }

  .gallery-mosaic img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .download-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .page-hero {
    padding-top: 120px;
  }

  .page-hero-inner,
  .page-card,
  .page-side,
  .site-map-links a {
    padding: 20px;
  }

  .site-map-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
