/* V2 开场只负责封面展示层，不影响基地、剧情和战斗布局。 */
.start-screen {
  background: #7ccbe9;
}

.start-screen::before {
  position: absolute;
  z-index: 5;
  inset: 8px;
  border: 1px solid rgba(255, 250, 222, 0.46);
  border-radius: 22px 8px 22px 8px;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 28px rgba(24, 64, 91, 0.12);
}

.start-bg {
  background: url("./assets/keyart-radiant-v2.webp") center 48% / cover no-repeat;
  filter: saturate(1.04) contrast(1.02) brightness(0.98);
  transform: scale(1.018);
  animation-duration: 18s;
}

.start-bg::after {
  background:
    linear-gradient(180deg, rgba(9, 47, 84, 0.2) 0%, rgba(13, 70, 104, 0.02) 28%, transparent 61%, rgba(4, 23, 39, 0.9) 100%),
    radial-gradient(ellipse at 50% 17%, rgba(255, 255, 255, 0.08), transparent 43%);
}

.sun-flare {
  width: 64vmin;
  height: 64vmin;
  top: -20vmin;
  left: -16vmin;
  opacity: 0.62;
  background: rgba(255, 237, 169, 0.46);
  filter: blur(36px);
}

.start-vignette {
  background:
    linear-gradient(90deg, rgba(2, 31, 51, 0.2), transparent 19% 81%, rgba(2, 31, 51, 0.16)),
    linear-gradient(0deg, rgba(2, 18, 32, 0.96) 0%, rgba(3, 28, 47, 0.28) 23%, transparent 43%);
}

.start-head {
  align-items: flex-start;
  gap: 10px;
  padding: calc(13px + env(safe-area-inset-top)) 15px 0;
}

.start-screen .edition-pill {
  border-color: rgba(232, 247, 255, 0.46);
  color: #f8fcff;
  background: rgba(5, 39, 67, 0.72);
  box-shadow: 0 7px 22px rgba(3, 24, 42, 0.2);
}

.start-screen .language-switch {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, 44px);
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(218, 244, 255, 0.48);
  border-radius: 18px;
  color: #eefaff;
  background: linear-gradient(180deg, rgba(4, 39, 67, 0.9), rgba(4, 31, 55, 0.82));
  box-shadow: 0 8px 24px rgba(3, 24, 42, 0.24), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.start-screen .language-switch button {
  position: relative;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #e9f8ff;
  background: rgba(142, 205, 227, 0.06);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1;
  text-indent: 0.12em;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.start-screen .language-switch button:not([aria-pressed="true"]):hover {
  border-color: rgba(210, 241, 251, 0.3);
  background: rgba(142, 205, 227, 0.13);
}

.start-screen .language-switch button:focus-visible {
  outline: 3px solid rgba(255, 226, 127, 0.88);
  outline-offset: 2px;
}

.start-screen .language-switch button[aria-pressed="true"] {
  color: #123854;
  border-color: rgba(255, 247, 205, 0.92);
  background: linear-gradient(180deg, #fffdf0, #efd998);
  box-shadow: 0 4px 12px rgba(255, 226, 123, 0.28), inset 0 1px #fff;
  transform: translateY(-1px);
}

.start-screen .language-switch button[aria-pressed="true"]::after {
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 2px;
  border-radius: 99px;
  content: "";
  background: #b67c2d;
}

.start-copy {
  top: 10.8%;
  right: 14px;
  left: 14px;
  filter: drop-shadow(0 3px 0 rgba(3, 30, 51, 0.72)) drop-shadow(0 11px 25px rgba(2, 31, 53, 0.36));
}

.start-title-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 4px;
  color: #ffe89c;
  font-size: 10px;
}

.start-title-mark i {
  width: min(20vw, 82px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 184, 0.9));
}

.start-title-mark i:last-child {
  background: linear-gradient(90deg, rgba(255, 240, 184, 0.9), transparent);
}

.start-title-mark b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 241, 184, 0.72);
  border-radius: 50%;
  background: rgba(10, 48, 75, 0.58);
}

.start-eyebrow {
  margin-bottom: 4px;
  color: #f4e3a9;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(10px, 2.7vw, 12px);
  font-weight: 850;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 8px rgba(2, 26, 45, 0.72);
}

.start-copy h1 {
  display: block;
  margin: 0 auto;
  color: #ffe58f;
  background: linear-gradient(180deg, #fffef6 0%, #fff1bc 35%, #e8bd65 68%, #fff1b7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.8px rgba(22, 53, 72, 0.94);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(38px, 11vw, 56px);
  font-style: normal;
  font-weight: 700;
  font-kerning: normal;
  line-height: 1;
  letter-spacing: 0.035em;
  white-space: nowrap;
  text-shadow: none;
  filter: drop-shadow(0 2px 0 rgba(18, 51, 70, 0.92)) drop-shadow(0 7px 12px rgba(2, 30, 51, 0.36));
  transform: none;
}

html:lang(ja) .start-copy h1 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(36px, 9.8vw, 50px);
  font-weight: 700;
  letter-spacing: 0.1em;
}

html:lang(zh) .start-copy h1 {
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
  font-size: clamp(38px, 10.2vw, 52px);
  font-weight: 800;
  letter-spacing: 0.11em;
}

html:lang(en) .start-copy h1 {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(29px, 7.4vw, 39px);
  letter-spacing: 0.04em;
}

html:lang(en) .start-eyebrow {
  font-size: clamp(9px, 2.3vw, 11px);
  letter-spacing: 0.11em;
}

.start-title-divider {
  display: block;
  width: min(68%, 300px);
  height: 5px;
  margin: 9px auto 0;
  border-right: 36px solid transparent;
  border-left: 36px solid transparent;
  background: linear-gradient(90deg, transparent, #f7da7f 22% 78%, transparent);
  clip-path: polygon(0 40%, 42% 40%, 45% 0, 55% 0, 58% 40%, 100% 40%, 100% 60%, 58% 60%, 55% 100%, 45% 100%, 42% 60%, 0 60%);
}

.start-subtitle {
  margin-top: 8px;
  padding: 7px 15px 8px;
  border: 1px solid rgba(255, 247, 211, 0.66);
  border-radius: 999px;
  color: #fffdf2;
  background: linear-gradient(90deg, rgba(7, 43, 69, 0.7), rgba(12, 69, 96, 0.8), rgba(7, 43, 69, 0.7));
  box-shadow: 0 5px 18px rgba(3, 27, 45, 0.26);
  font-size: clamp(13px, 3.45vw, 16px);
  letter-spacing: 0.05em;
  transform: none;
  backdrop-filter: blur(5px);
}

.start-actions {
  right: 17px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 17px;
  padding: 10px 10px 8px;
  border: 1px solid rgba(234, 248, 255, 0.3);
  border-radius: 22px 8px 22px 8px;
  background: linear-gradient(180deg, rgba(5, 39, 63, 0.32), rgba(3, 25, 43, 0.76));
  box-shadow: 0 14px 34px rgba(2, 21, 36, 0.32);
  backdrop-filter: blur(7px);
}

.start-screen .primary-cta {
  min-height: 62px;
  border-color: #fff5c9;
  border-radius: 18px 6px 18px 6px;
  background: linear-gradient(180deg, #ffd264, #f3a344 54%, #dc783e);
  box-shadow: 0 6px 0 #9f5b38, 0 13px 26px rgba(61, 36, 25, 0.34), inset 0 1px rgba(255, 255, 255, 0.58);
  font-size: 20px;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 0 rgba(92, 52, 28, 0.34);
}

.start-fineprint {
  margin-top: 11px;
  color: rgba(245, 250, 255, 0.8);
  font-size: 10px;
  letter-spacing: 0.12em;
}

@media (max-width: 370px), (max-height: 700px) {
  .start-screen::before { inset: 5px; }
  .start-head { padding-top: calc(8px + env(safe-area-inset-top)); }
  .start-screen .edition-pill { max-width: 47%; padding-inline: 8px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .start-copy { top: 9.6%; }
  .start-title-mark { margin-bottom: 1px; }
  .start-eyebrow { margin-bottom: 2px; }
  .start-screen .language-switch { grid-template-columns: repeat(3, 42px); padding: 4px; }
  .start-screen .language-switch button { width: 42px; min-width: 42px; min-height: 42px; }
  .start-copy h1 { font-size: clamp(34px, 10.2vw, 45px); }
  html:lang(ja) .start-copy h1 { font-size: clamp(33px, 9.1vw, 43px); }
  html:lang(zh) .start-copy h1 { font-size: clamp(35px, 9.6vw, 46px); }
  html:lang(en) .start-copy h1 { font-size: clamp(27px, 7.1vw, 34px); }
  .start-title-divider { margin-top: 6px; }
  .start-subtitle { display: none; }
  .start-actions { bottom: calc(8px + env(safe-area-inset-bottom)); padding: 7px 8px 5px; }
  .start-screen .primary-cta { min-height: 56px; font-size: 18px; }
  .start-fineprint { margin-top: 7px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .start-bg { animation: none !important; }
}
