:root {
  --bg: #07080c;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, .62);
  --line: rgba(244, 241, 234, .22);
  --gold: #e7c56a;
  --leaf: #8dce63;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body {
  height: 100%;
  overflow: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.kv {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #002a52;
  perspective: 1400px;
}
.kv-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  pointer-events: none;
  transform: scale(1.08);
  transform-origin: center center;
  will-change: transform;
}
.kv-bg { background-image: url(assets/chronicle/index_tunagu_bg.jpg); }
.kv-w3 { background-image: url(assets/chronicle/index_tunagu_wrap3.png); }
.kv-w4 { background-image: url(assets/chronicle/index_tunagu_wrap4.png); }
.kv-w5 { background-image: url(assets/chronicle/index_tunagu_wrap5.png); }
.kv-cover {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #002a52;
  transition: opacity .4s ease;
}
.kv.is-ready .kv-cover {
  opacity: 0;
  pointer-events: none;
}
.kv-load {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(360px, 72vw);
  transform: translate(-50%, -50%);
}
.kv-load-bar {
  height: 4px;
  background: rgba(244, 241, 234, .22);
  overflow: hidden;
}
.kv-load-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}
.kv-load-num {
  margin: 14px 0 0;
  text-align: center;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .08em;
}
.kv-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 12, .28) 0%, transparent 12%, transparent 70%, rgba(7, 8, 12, .55) 100%);
}
.frame {
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.top {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 36px;
  right: 120px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo { width: 72px; height: auto; }
.brand-name { font-weight: 700; letter-spacing: .18em; font-size: 13px; }
.brand-name small { display: block; margin-top: 3px; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.top nav a { opacity: .8; }
.top nav a.is-on, .top nav a:hover { opacity: 1; color: var(--gold); }
body.has-global-nav .top {
  top: 64px;
  right: 36px;
}
body.has-global-nav .top .brand-name {
  display: none;
}
body.has-global-nav .rail { display: none; }
body.has-global-nav .eco-global-nav-spacer { height: 0; }

.rail {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rail a, .rail span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(7, 8, 12, .45);
  font-size: 12px;
}
.rail a.is-on { border-color: var(--gold); color: var(--gold); }

.copy {
  position: absolute;
  z-index: 2;
  left: 92px;
  bottom: 148px;
}
.kicker { margin: 0 0 8px; color: var(--leaf); letter-spacing: .28em; font-size: 12px; }
h1 { margin: 0; font-size: 64px; line-height: 1; letter-spacing: .06em; font-weight: 700; }
.sub { margin: 14px 0 0; color: var(--muted); letter-spacing: .22em; font-size: 14px; }

.dock {
  position: absolute;
  z-index: 2;
  right: 120px;
  bottom: 72px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.enter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 210px;
  height: 86px;
  padding: 0 18px;
  background: #11131a;
  border: 1px solid var(--gold);
}
.enter b { font-size: 18px; letter-spacing: .12em; }
.enter span { margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.side-btns { display: flex; flex-direction: column; gap: 10px; }
.side-btns a {
  min-width: 156px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(7, 8, 12, .72);
  font-size: 16px;
  letter-spacing: .12em;
}
.side-btns a:hover, .enter:hover { border-color: var(--gold); }

.pc-dl {
  position: relative;
  overflow: hidden;
  width: 140px;
  height: 102px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 12, .72);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: .14em;
}
.pc-dl:hover { border-color: var(--gold); }
.pc-dl::after {
  content: "";
  position: absolute;
  top: -45%;
  left: -70%;
  width: 46%;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-18deg);
  animation: pc-shine 2.4s ease infinite;
  pointer-events: none;
}
@keyframes pc-shine {
  0% { left: -70%; }
  55% { left: 140%; }
  100% { left: 140%; }
}

.ticker {
  position: absolute;
  z-index: 2;
  left: 92px;
  bottom: 28px;
  display: block;
  width: min(560px, 46vw);
  aspect-ratio: 739 / 124;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(7, 8, 12, .55);
  color: var(--muted);
  font-size: 13px;
}
.ticker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ticker img[hidden] { display: none; }
.ticker span {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker.has-image span { display: none; }
.ticker-hint {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 10px;
  color: rgba(244, 241, 234, 0.55);
  letter-spacing: 0.04em;
  pointer-events: none;
}
.ticker.has-image .ticker-hint { color: rgba(255, 255, 255, 0.72); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }

.hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .2em;
}

@media (max-width: 800px) {
  h1 { font-size: 40px; }
  .top nav, .rail, .hint { display: none; }
  .copy { left: 28px; bottom: 150px; }
  .ticker { left: 28px; }
  .dock { left: 28px; right: 20px; }
}
