/* 二次元手游风：荧光黄 / 热粉 / 青色 + 黑色硬描边，斜切面板，涂鸦和星芒。 */
:root {
  --black: #17141f;
  --night: #0d0a33;
  --pink: #ff3f9a;
  --yellow: #e8ff3a;
  --cyan: #2fe0ff;
  --violet: #8a5cff;
  --sport: "Segoe UI Black", "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --cut: 26px;
  --skew: -12deg;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; color: var(--black); font: 16px/1.7 var(--cjk); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 模型层：WebGL 起不来时留着静态图 ---------- */
.poster { position: fixed; inset: 0; display: block; }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
#world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; cursor: grab; outline: none; opacity: 0; transition: opacity .8s; }
#world:active { cursor: grabbing; }
.gl-ok #world { opacity: 1; }
.gl-ok .poster { visibility: hidden; transition: visibility 0s 1s; }
.no-webgl #world { display: none; }

main { position: relative; pointer-events: none; overflow-x: clip; }
.hero { height: 100vh; height: 100svh; }
.chapter { height: 230vh; }
.finale { height: 160vh; }
.stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 96px 7vw 40px; }
.chapter[data-side="right"] .stick { justify-content: flex-end; }
.finale .stick { justify-content: center; align-items: flex-end; padding-bottom: 11vh; }

/* ---------- 章节卡片 ---------- */
.card { position: relative; isolation: isolate; width: min(470px, 100%); transform: translateY(var(--lift, 0px)) rotate(-1.2deg); pointer-events: auto; }
.chapter[data-side="right"] .card { transform: translateY(var(--lift, 0px)) rotate(1.2deg); }
.js .card, .js .cta { opacity: 0; will-change: opacity, transform; }
.js .card:not(.live), .js .cta:not(.live) { pointer-events: none; }

.splash { position: absolute; z-index: -1; left: -110px; top: -86px; width: 640px; height: 555px; --c1: var(--ac); --c2: var(--ac2); --c3: var(--ac3); opacity: .92; }
.chapter[data-side="right"] .splash { left: auto; right: -110px; transform: scaleX(-1); }

.sp { position: absolute; z-index: 3; width: 34px; height: 34px; fill: var(--yellow); stroke: var(--black); stroke-width: 2.5px; animation: twinkle 2.4s ease-in-out infinite; }
.sp.s1 { top: -22px; right: 64px; }
.sp.s2 { top: 38%; right: -18px; width: 24px; height: 24px; fill: #fff; animation-delay: -.8s; }
.sp.s3 { bottom: 70px; left: -20px; width: 20px; height: 20px; fill: var(--cyan); animation-delay: -1.6s; }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); } 50% { transform: scale(1.15) rotate(45deg); } }

.sticker {
  position: absolute; z-index: 3; top: -34px; right: -14px;
  font: italic 900 32px/1 var(--sport); letter-spacing: .02em; color: var(--ac2);
  -webkit-text-stroke: 6px var(--black); paint-order: stroke fill; text-shadow: 4px 4px 0 #fff;
  transform: rotate(-9deg);
}

.plate { filter: drop-shadow(8px 8px 0 var(--ac)); }
.frame, .body {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.frame { background: var(--black); padding: 3px; }
.body {
  --cut: 24.8px;
  position: relative; padding: 26px 28px 24px;
  background: linear-gradient(165deg, #fff 0%, #fff 55%, color-mix(in srgb, var(--ac) 14%, #fff) 100%);
}
/* 右上角斜纹 + 左下角网点 */
.body::before, .body::after { content: ""; position: absolute; pointer-events: none; }
.body::before { top: 0; right: 0; width: 170px; height: 64px; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ac) 55%, transparent) 0 5px, transparent 5px 13px); -webkit-mask: linear-gradient(225deg, #000 30%, transparent 80%); mask: linear-gradient(225deg, #000 30%, transparent 80%); }
.body::after { left: 0; bottom: 0; width: 220px; height: 160px; background: radial-gradient(circle, color-mix(in srgb, var(--ac2) 70%, transparent) 1.7px, transparent 2.2px) 0 0 / 10px 10px; -webkit-mask: radial-gradient(circle at 0 100%, #000 10%, transparent 70%); mask: radial-gradient(circle at 0 100%, #000 10%, transparent 70%); }
.body > * { position: relative; z-index: 1; }

.tag { display: flex; align-items: stretch; width: max-content; margin: 0 0 14px; transform: skewX(var(--skew)); transform-origin: left; }
.tag b { padding: 5px 9px 4px; font: italic 900 15px/1 var(--sport); background: var(--yellow); border: 2.5px solid var(--black); }
.tag span { padding: 6px 13px 5px; font: 800 15px/1 var(--cjk); background: var(--black); color: #fff; letter-spacing: .06em; }
.tag i { align-self: center; margin-left: 10px; font: italic 900 11px/1 var(--sport); letter-spacing: .2em; color: #9a95b5; }

.title {
  margin: 0 0 12px; font: 900 clamp(30px, 2.7vw, 41px)/1.16 var(--cjk); letter-spacing: .02em; text-wrap: balance;
  color: var(--black); text-shadow: 3px 3px 0 var(--ac); transform: skewX(-8deg); transform-origin: left;
}
.live .title { animation: glitch .55s steps(2) 1; }
@keyframes glitch {
  0% { text-shadow: -4px 0 var(--cyan), 4px 0 var(--pink); transform: skewX(-8deg) translateX(-6px); }
  30% { text-shadow: 4px -2px var(--cyan), -4px 2px var(--pink); transform: skewX(-14deg) translateX(4px); }
  60% { text-shadow: -2px 2px var(--pink), 3px -1px var(--cyan); transform: skewX(-6deg) translateX(-2px); }
  100% { text-shadow: 3px 3px 0 var(--ac); transform: skewX(-8deg); }
}

.timer { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 3px 15px 3px 3px; background: #fff; border: 2.5px solid var(--black); border-radius: 999px; font: 800 14px/1 var(--cjk); }
.timer svg { width: 26px; height: 26px; color: var(--black); }
.desc { margin: 0 0 16px; font-size: 14.5px; line-height: 1.75; color: #3b3752; }

/* “奖励预览”式的功能格子 */
.loot { margin: 0 0 18px; padding: 10px 12px 12px; background: linear-gradient(100deg, var(--ac), color-mix(in srgb, var(--ac) 55%, #fff)); border: 2.5px solid var(--black); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.loot-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font: 900 15px/1 var(--cjk); color: #fff; text-shadow: 2px 2px 0 var(--black), -1px -1px 0 var(--black), 1px -1px 0 var(--black), -1px 1px 0 var(--black); }
.loot-h i { font: italic 900 10px/1 var(--sport); letter-spacing: .22em; color: var(--black); text-shadow: none; opacity: .7; }
.loot ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; }
.loot li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; padding: 6px 4px; background: linear-gradient(160deg, #fff 40%, #e9e4ff); border: 2.5px solid var(--black); border-radius: 6px; box-shadow: inset 0 -5px 0 rgba(23, 20, 31, .08); }
.loot svg { width: 28px; height: 28px; color: var(--black); }
.loot b { font: 800 11.5px/1.2 var(--cjk); text-align: center; }

.aside { display: inline-block; margin: 18px 0 0 10px; padding: 6px 14px; font-size: 13px; line-height: 1.4; color: #fff; background: var(--black); border-left: 6px solid var(--ac); transform: skewX(var(--skew)); }

/* ---------- 按钮 ---------- */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.row.center { justify-content: center; }
.btn {
  position: relative; overflow: hidden; display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 62px; padding: 10px 64px 9px 24px; text-decoration: none; color: var(--black);
  font: 900 21px/1 var(--cjk); letter-spacing: .04em;
  background: linear-gradient(100deg, #f4ff3a 0%, var(--yellow) 55%, #fff59a 100%);
  border: 3px solid var(--black); box-shadow: 6px 6px 0 var(--black);
  transform: skewX(var(--skew)); transition: transform .12s, box-shadow .12s;
}
.btn small { margin-top: 6px; font: italic 900 11px/1 var(--sport); letter-spacing: .32em; opacity: .7; }
.btn::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .85) 47%, transparent 58%) 160% 0 / 260% 100% no-repeat; animation: shine 3.4s ease-in-out infinite; }
@keyframes shine { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.play { position: absolute; right: 12px; top: 50%; width: 38px; height: 38px; margin-top: -19px; background: var(--pink); border: 3px solid var(--black); border-radius: 50%; transform: skewX(12deg); }
.play::after { content: ""; position: absolute; left: 12px; top: 8px; width: 14px; height: 16px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.btn:hover { transform: skewX(var(--skew)) translate(-2px, -2px); box-shadow: 9px 9px 0 var(--pink); }
.btn:active { transform: skewX(var(--skew)) translate(3px, 3px); box-shadow: 2px 2px 0 var(--black); }
.btn:focus-visible, .nav a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.btn.sub { padding-right: 24px; color: #fff; background: var(--black); }
.btn.sub small { color: var(--yellow); opacity: 1; }
.btn.sub::before { display: none; }
.btn.sub:hover { box-shadow: 9px 9px 0 var(--cyan); }
.btn.big { min-height: 76px; padding: 12px 82px 11px 34px; font-size: 27px; }
.btn.big .play { width: 48px; height: 48px; margin-top: -24px; right: 14px; }
.btn.big .play::after { left: 16px; top: 11px; width: 17px; height: 20px; }

/* ---------- 结尾 ---------- */
.cta { position: relative; isolation: isolate; text-align: center; color: #fff; transform: translateY(var(--lift, 0px)); pointer-events: auto; }
.cta .splash { left: 50%; top: 50%; width: 560px; height: 485px; margin: -200px 0 0 -280px; opacity: .85; }
.cta .sp.s1 { top: 30px; right: 4%; width: 46px; height: 46px; }
.cta .sp.s2 { top: 52%; left: 2%; right: auto; width: 30px; height: 30px; }
.badge { display: inline-block; margin: 0; padding: 7px 18px 6px; font: italic 900 15px/1 var(--sport); letter-spacing: .26em; color: var(--black); background: var(--yellow); border: 3px solid var(--black); box-shadow: 4px 4px 0 var(--pink); transform: skewX(var(--skew)) rotate(-3deg); }
.cta .title {
  margin: 18px 0 14px; font-size: clamp(38px, 5vw, 70px); color: #fff; transform-origin: center;
  -webkit-text-stroke: 8px var(--black); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--pink), 9px 9px 0 var(--black);
}
.cta.live .title { animation: glitchBig .55s steps(2) 1; }
@keyframes glitchBig {
  0% { text-shadow: -6px 0 var(--cyan), 6px 0 var(--pink); transform: skewX(-8deg) translateX(-8px); }
  50% { text-shadow: 6px -2px var(--cyan), -6px 2px var(--pink); transform: skewX(-14deg) translateX(6px); }
  100% { text-shadow: 5px 5px 0 var(--pink), 9px 9px 0 var(--black); transform: skewX(-8deg); }
}
.lead { display: inline-block; margin: 0 0 26px; padding: 7px 18px; font: 700 16px/1.5 var(--cjk); background: rgba(23, 20, 31, .82); border-left: 6px solid var(--cyan); transform: skewX(var(--skew)); }

/* ---------- 导航：滚过第一屏才出现 ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 16px;
  padding: 0 26px; pointer-events: none; transform: translateY(-170%); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.nav > * { pointer-events: auto; }
.nav.on { transform: none; }
.brand { display: flex; align-items: center; gap: 9px; padding: 8px 18px 8px 12px; text-decoration: none; color: var(--black); background: #fff; border: 3px solid var(--black); box-shadow: 4px 4px 0 var(--pink); transform: skewX(var(--skew)); }
.brand .logo { width: 22px; height: 22px; fill: var(--pink); stroke: var(--black); stroke-width: 3px; }
.brand b { font: italic 900 20px/1 var(--sport); letter-spacing: .02em; }
.brand small { padding: 3px 6px; font: 800 11px/1 var(--cjk); color: #fff; background: var(--black); }
.tabs { display: flex; gap: 8px; }
.tabs a { display: flex; align-items: center; gap: 9px; padding: 6px 18px 6px 10px; text-decoration: none; color: #fff; background: rgba(23, 20, 31, .86); border: 2.5px solid var(--black); transform: skewX(var(--skew)); transition: background .2s, color .2s, box-shadow .2s; }
.tabs svg { width: 26px; height: 26px; padding: 4px; color: currentColor; background: rgba(255, 255, 255, .14); border-radius: 50%; }
.tabs span { display: flex; flex-direction: column; font: 800 14px/1.05 var(--cjk); }
.tabs i { margin-top: 3px; font: italic 900 9px/1 var(--sport); letter-spacing: .22em; opacity: .6; }
.tabs a:hover, .tabs a.cur { color: var(--black); background: linear-gradient(100deg, #f4ff3a, #ffd0e6 70%, var(--pink)); box-shadow: 4px 4px 0 var(--black); }
.tabs a.cur svg, .tabs a:hover svg { background: rgba(23, 20, 31, .12); }
.links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.links a { display: inline-flex; align-items: center; padding: 8px 15px; text-decoration: none; font: 700 14px/1 var(--cjk); color: #fff; background: rgba(23, 20, 31, .78); border: 2px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.links a:hover { border-color: var(--cyan); }
.login b { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: -2px -6px -2px 10px; font: 900 15px/1 var(--sport); color: #fff; background: var(--pink); border-radius: 4px; }
.go { display: grid; place-items: center; height: 48px; padding: 0 20px; text-decoration: none; font: 900 16px/1 var(--cjk); letter-spacing: .06em; color: #fff; background: var(--pink); border: 3px solid var(--black); box-shadow: 4px 4px 0 var(--black); text-shadow: 2px 2px 0 var(--black); clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px); transition: transform .12s; }
.go:hover { transform: translate(-2px, -2px); }

footer { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 26px 20px 30px; background: var(--black); color: #b9b6dc; font-size: 13.5px; border-top: 4px solid var(--pink); }
footer a { text-decoration: none; }
footer a:hover { color: var(--yellow); }

@media (max-width: 1100px) {
  .links a:not(.login) { display: none; }
}
@media (max-width: 860px) {
  .tabs i, .tabs svg { display: none; }
}
@media (max-width: 760px) {
  :root { --cut: 18px; }
  .stick { align-items: flex-end; padding: 80px 16px calc(18px + env(safe-area-inset-bottom)); }
  .chapter[data-side="right"] .stick { justify-content: flex-start; }
  .card, .chapter[data-side="right"] .card { width: 100%; transform: translateY(var(--lift, 0px)); }
  .splash { width: 400px; height: 347px; left: -60px; top: -60px; }
  .chapter[data-side="right"] .splash { right: -60px; }
  .sticker { font-size: 22px; top: -24px; right: 4px; -webkit-text-stroke-width: 5px; }
  .sp.s3 { display: none; }
  .plate { filter: drop-shadow(5px 5px 0 var(--ac)); }
  .body { --cut: 16.8px; padding: 18px 16px 16px; }
  .tag { margin-bottom: 10px; }
  .tag b, .tag span { font-size: 13px; }
  .title { font-size: 25px; margin-bottom: 8px; }
  .title br { display: none; }
  .timer { display: none; }
  .desc { font-size: 13.5px; line-height: 1.65; margin-bottom: 12px; }
  .loot { margin-bottom: 14px; padding: 7px 8px 8px; }
  .loot-h { margin-bottom: 6px; font-size: 13px; }
  .loot ul { gap: 6px; }
  .loot li { aspect-ratio: auto; padding: 7px 2px 6px; gap: 4px; }
  .loot svg { width: 20px; height: 20px; }
  .loot b { font-size: 10.5px; }
  .aside { display: none; }
  .btn { min-height: 52px; padding: 8px 54px 7px 18px; font-size: 18px; box-shadow: 4px 4px 0 var(--black); }
  .btn small { margin-top: 4px; font-size: 9.5px; }
  .play { width: 32px; height: 32px; margin-top: -16px; right: 10px; }
  .play::after { left: 10px; top: 6px; width: 12px; height: 14px; }
  .btn.sub { padding-right: 18px; }
  .btn.big { min-height: 60px; padding: 9px 64px 8px 24px; font-size: 21px; }
  .btn.big .play { width: 38px; height: 38px; margin-top: -19px; }
  .btn.big .play::after { left: 12px; top: 8px; width: 14px; height: 16px; }
  .cta .splash { width: 460px; height: 399px; margin: -220px 0 0 -230px; }
  .cta .title { -webkit-text-stroke-width: 6px; text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 var(--black); }
  .lead { font-size: 14px; text-wrap: balance; }
  .finale .stick { padding-bottom: calc(8vh + env(safe-area-inset-bottom)); }
  .nav { gap: 8px; padding: 0 12px; top: 12px; }
  .tabs, .links { display: none; }
  .go { margin-left: auto; height: 42px; padding: 0 16px; font-size: 15px; }
  .brand b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav, .btn, .tabs a { transition: none; }
  .sp, .btn::before, .live .title, .cta.live .title { animation: none; }
}

/* ---------- 接入 6sol 站点：登录态、可点的素材格子、首页公告 ---------- */
.links .me { gap: 8px; padding: 4px 14px 4px 4px; }
.me .ava { display: grid; place-items: center; width: 26px; height: 26px; font: 900 13px/1 var(--cjk); color: var(--black); background: var(--yellow); border: 2px solid var(--black); border-radius: 50%; }
.me .nm { max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .pt { font: italic 900 13px/1 var(--sport); color: var(--yellow); }
.loot li:has(> a) { padding: 0; transition: transform .12s, background .12s; }
.loot li > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 6px 4px; text-decoration: none; color: inherit; }
.loot li:has(> a):hover { transform: translateY(-3px) rotate(-2deg); background: linear-gradient(160deg, #fff 30%, #fdfdc8); }
.loot li > a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.home-notice { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(13, 10, 51, .72); backdrop-filter: blur(3px); }
.home-notice[hidden] { display: none; }
.home-notice-card { --ac: var(--pink); --ac2: var(--yellow); position: relative; width: min(460px, 100%); filter: drop-shadow(8px 8px 0 var(--pink)); }
.home-notice-card.has-image { width: min(760px, 100%); }
.home-notice-card .sp.s1 { top: -18px; right: 56px; }
.home-notice-card .body { padding: 26px 26px 22px; max-height: calc(100vh - 60px); overflow: auto; }
.home-notice-x { position: absolute; z-index: 2; top: 12px; right: 30px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; cursor: pointer; background: #fff; border: 2.5px solid var(--black); border-radius: 50%; }
.home-notice-x svg { width: 16px; height: 16px; fill: none; stroke: var(--black); stroke-width: 3; stroke-linecap: round; }
.home-notice-x:hover { background: var(--yellow); }
.home-notice-grid { display: grid; gap: 22px; }
.has-image .home-notice-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
.home-notice-copy h2 { margin: 0 0 10px; font: 900 26px/1.3 var(--cjk); text-shadow: 3px 3px 0 var(--ac); transform: skewX(-8deg); transform-origin: left; }
.home-notice-body { margin: 0 0 18px; font-size: 14.5px; line-height: 1.75; color: #3b3752; }
.home-notice-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.home-notice-primary, .home-notice-ghost { display: inline-block; padding: 11px 24px; font: 900 16px/1 var(--cjk); letter-spacing: .04em; text-decoration: none; cursor: pointer; border: 3px solid var(--black); box-shadow: 5px 5px 0 var(--black); transform: skewX(var(--skew)); transition: transform .12s, box-shadow .12s; }
.home-notice-primary { color: var(--black); background: linear-gradient(100deg, #f4ff3a, var(--yellow) 55%, #fff59a); }
.home-notice-ghost { color: #fff; background: var(--black); }
.home-notice-primary:hover, .home-notice-ghost:hover { transform: skewX(var(--skew)) translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
.home-notice-mute { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6b6785; cursor: pointer; }
.home-notice-mute input { accent-color: var(--pink); }
.home-notice-media { margin: 0; border: 3px solid var(--black); box-shadow: 5px 5px 0 var(--cyan); background: #fff; }
.home-notice-media img { display: block; width: 100%; max-height: 60vh; object-fit: cover; }
@media (max-width: 760px) {
  .links { display: none; }
  .has-image .home-notice-grid { grid-template-columns: 1fr; }
  .home-notice-media { order: -1; }
  .home-notice-copy h2 { font-size: 22px; }
}
