:root{
  --bg:#060d16;
  --panel:#0d1c2d;
  --panel2:#091522;
  --text:rgba(215,230,245,.78);
  --muted:rgba(78,106,132,.82);
  --accent:#9a8660;
  --danger:#a3253a;
  --ok:#2a8c78;
  --border:rgba(18,40,62,.80);
  --dialogue-bg: rgba(8,16,28,.96);
  --dialogue-border: rgba(18,40,62,.70);
  --shadow: 0 12px 36px rgba(0,0,0,.55);
  --radius:16px;
  --vh: 1vh;
  --mobile-header: 96px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --serif: Georgia, 'Times New Roman', 'Noto Serif SC', 'Source Han Serif SC', serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{
  background: radial-gradient(1200px 600px at 20% 10%,
rgba(14,30,50,.20), transparent 60%),
              radial-gradient(1000px 700px at 90% 30%,
rgba(8,16,28,.35), transparent 55%),
              var(--bg);
}
body{
  margin:0;
  background: radial-gradient(1200px 600px at 20% 10%,
rgba(14,30,50,.20), transparent 60%),
              radial-gradient(1000px 700px at 90% 30%,
rgba(8,16,28,.35), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family:var(--sans);
  overflow: hidden;
}

.app{
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border:1px solid var(--border);
  background: rgba(8,16,28,.75);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.title{
  font-weight:700;
  letter-spacing:.5px;
}

.controls{
  display:flex;
  gap:10px;
  margin-left:auto;
  --control-btn-size: 48px;
}
.gameControls{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  margin-left: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}
.toastArea{
  position: absolute;
  top: calc(12px + var(--control-btn-size, 48px) + 10px);
  right: 12px;
  left: auto;
  bottom: auto;
  z-index: 7;
  display:flex;
  flex-direction:column;
  gap: 8px;
  pointer-events: none;
}
.toastItem{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,16,28,.65);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  max-width: 300px;
  animation: toastIn .28s ease-out;
}
.toastItem.isLeaving{
  animation: toastOut .3s ease-in forwards;
}
@keyframes toastIn{
  from{ opacity: 0; transform: translateX(12px); }
  to{ opacity: 1; transform: translateX(0); }
}
@keyframes toastOut{
  from{ opacity: 1; transform: translateX(0); }
  to{ opacity: 0; transform: translateX(12px); }
}
.gameControls .btn{
  background: rgba(8,16,28,.65);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.gameControls .btn:hover{
  background: rgba(10,18,32,.80);
  border-color: rgba(255,255,255,.2);
}
.controls .btn{
  height: var(--control-btn-size);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.iconBtn{
  width: var(--control-btn-size);
  height: var(--control-btn-size);
  padding: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height: 0;
}

button{
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s 
ease;
}
button:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(39,67,95,.65);
}
button:active{ transform: translateY(1px); }

button.primary{
  background: rgba(154,134,96,.18);
  border-color: rgba(154,134,96,.48);
}
button.primary:hover{
  background: rgba(154,134,96,.26);
}

button.danger{
  background: rgba(163,37,58,.20);
  border-color: rgba(163,37,58,.48);
}
button.danger:hover{
  background: rgba(163,37,58,.28);
}

.stage{
  position: relative;
  z-index: 2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  flex: 1;
  gap:10px;
  margin-top: 10px;
}
.portraits{
  position: absolute;
  inset: 0;
  display:flex;
  justify-content: space-between;
  align-items: stretch;
  gap:0;
  pointer-events: none;
  z-index: 0;
}
.bgFade{
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 1;
}

.portrait{
  border:0 !important;
  background: transparent;
  border-radius: 0;
  min-height: 0;
  box-shadow: none;
  position:relative;
  overflow: visible;
  width: 50%;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  user-select: none;
  -webkit-user-select: none;
}
.portraitCenter{
  position: absolute;
  left: 25%;
  right: auto;
  bottom: 0;
  width: 50%;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  pointer-events: none;
}
.portrait.dim .portraitImg,
.portraitImg.dim{
  filter: grayscale(0.35) brightness(0.7);
}
.portraitImg{
  position:relative;
  width:86%;
  height:100%;
  object-fit: contain;
  object-position: center bottom;
  --portrait-scale: 1;
  transform: translateX(var(--portrait-shift, 0%)) scale(var(--portrait-scale, 1));
  transform-origin: center bottom;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.dialogue{
  border:1px solid var(--border);
  background: var(--dialogue-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-height: 520px;
  display:flex;
  flex-direction:column;
  gap:12px;
  position: relative;
  z-index: 2;
  user-select: none;
  -webkit-user-select: none;
}
.dialogueBottom{
  min-height: 0;
  height: 30vh;
  margin: 0 16px 4px;
}

.nameRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.speaker{
  font-weight:800;
  font-size: 18px;
  min-height: 22px;
  user-select: none;
  -webkit-user-select: none;
  text-decoration: none;
}

.badge{
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 8px;
  border:1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.text{
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
  flex: 1;
  padding: 8px 2px;
  overflow-y: auto;
  min-height: 0;
  user-select: none;
  -webkit-user-select: none;
}

.choices{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  user-select: none;
  -webkit-user-select: none;
}

.choiceBtn{
  text-align:center;
  width: 520px;
  max-width: 90vw;
  position: relative;
  overflow: hidden;
  background: rgba(8,16,28,.86);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.choiceBtn[disabled]{
  opacity: .45;
  cursor:not-allowed;
}
.choiceBtn:hover{
  background: rgba(154,134,96,.18);
  border-color: rgba(154,134,96,.40);
}

.hint{
  color: var(--muted);
  font-size: 12px;
  display:flex;
  gap:10px;
  align-items:center;
}
.hintDesktop{ display: inline-flex; gap: 8px; align-items: center; }
.hintMobile{ display: none; }
.kbd{
  font-family: var(--mono);
  padding:2px 7px;
  border:1px solid var(--border);
  border-bottom-color: rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--text);
}

@media (max-width: 880px){
  .stage{ margin-top: 8px; }
  .portraits{ grid-template-columns: 1fr; }
  .dialogue{ min-height: 420px; }
}
.demoContent .stage{
  margin-top: 10px;
}
.demoContent .portraits{
  grid-template-columns: 1fr 1fr;
}
.demoContent .dialogue{
  min-height: 0;
  backdrop-filter: none;
}
.hidden { display: none !important; }

.screen { min-height: 100vh; }
.screenLanding{
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  position: relative;
}
.landingWaves{
  --x: -0.5rem;
  --y: 50%;
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .4s ease;
}
.landingWaves svg{
  display: block;
  width: 100%;
  height: 100%;
}
.landingWaves path{
  fill: none;
  stroke: rgba(39,67,95,.38);
  stroke-width: 0.8px;
}
.demoWaves{
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}
.demoContent a-waves.demoWaves{
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
}
.screenLanding[data-active="home"] .landingWavesRipple{
  opacity: 1;
}
.screenLanding[data-active="world"] .landingWavesFlow,
.screenLanding[data-active="characters"] .landingWavesFlow,
.screenLanding[data-active="factions"] .landingWavesFlow,
.screenLanding[data-active="concept"] .landingWavesFlow,
.screenLanding[data-active="about"] .landingWavesFlow{
  opacity: 1;
}
.stickyHeader{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height: 96px;
  padding: 0 20px;
  border-radius: 0;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(4,8,16,.97) 0%, rgba(4,8,16,.70) 60%, rgba(12,20,32,0) 100%);
  backdrop-filter: blur(8px);
}
.headerCenter{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display:flex;
  gap:12px;
  align-items:center;
}
.headerActions{
  display:flex;
  gap:12px;
  justify-content:flex-end;
}
.btn.headerNavBtn{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.75);
}
.btn.headerNavBtn:hover,
.btn.headerNavBtn.isActive{
  color: #DDE6ED;
  background: rgba(39,67,95,.38);
}
.soundToggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: rgba(255,255,255,.45);
  background: rgba(8,16,28,.35);
}
.soundIcon{
  width: 22px;
  height: 22px;
}
.soundToggle.isOn{
  color: rgba(215,230,245,.88);
  background: rgba(154,134,96,.22);
}
.langToggle{
  min-width: 52px;
  height: 44px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
}
.accountToggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  padding: 0;
}
.accountIcon{
  width: 22px;
  height: 22px;
}
.accountTabs{
  display:flex;
  gap:10px;
  margin: 10px 0 12px;
}
.accountTabs .btn{
  flex: 1;
}
.accountTabs .btn.isActive{
  background: rgba(39,67,95,.38);
  border-color: rgba(39,67,95,.55);
}
.logoBtn{
  border:0;
  background: transparent;
  padding: 0;
  cursor:pointer;
}
.logoBtn img{
  height: 96px;
  max-height: 96px;
  width: auto;
  display:block;
}
.stickyHeader.hidden{
  display:none;
}
.backHome{
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 60;
}
.demoScreen{
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: transparent;
}
.demoContent{
  width: 1280px;
  height: 720px;
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: hidden;
  background: #060910;
  --dialogue-height: 180px;
  --portrait-scale: 1.6;
  transform-origin: center;
  transform: translate(calc(-50% + var(--demo-shift-x, 0px)), calc(-50% + var(--demo-shift-y, 0px)))
    rotate(var(--demo-rotate, 0deg)) scale(var(--demo-scale, 1));
}
.demoContent .titleCard{
  width: 520px;
}
.demoContent .menu .btn{
  width: 320px;
}
.demoContent .interludeText{
  max-width: 900px;
}
.demoContent .dialogueBottom{
  height: var(--dialogue-height);
  margin: 0 16px 4px;
}
.demoContent .dialogue{
  min-height: 0;
}
.demoContent .text{
  font-size: 18px;
  line-height: 1.6;
}
.demoContent .speaker{
  font-size: 18px;
}
.demoContent .btn{
  font-size: 15px;
  padding: 12px 14px;
}
.modal.demoOverlay .btn{
  font-size: 15px;
  padding: 12px 14px;
}
.demoContent .historyList{
  max-height: 360px;
}
.demoContent .settingRow input[type="range"]{
  width: var(--slider-width, 260px);
}
.demoContent .modalBtns .btn{
  width: 160px;
}
.demoContent .historyList{
  max-height: 360px;
}
.demoOverlay .modalCard{
  width: 560px;
}
.landingSection{
  height: 100vh;
  overflow: hidden;
  padding: 28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 0;
  position: relative;
  z-index: 1;
}

.landingFooter{
  padding: 18px 28px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  z-index: 1;
}
.landingFactions{
  background: linear-gradient(180deg, rgba(6,10,18,0) 0%, rgba(8,16,28,.38) 40%, rgba(6,10,18,.42) 100%);
  justify-content: flex-start;
  padding-top: 120px;
}
#landingCharacters{
  justify-content: flex-start;
  padding-top: 120px;
}
.landingWorld{
  justify-content:flex-start;
  padding-top: 120px;
}
.worldTitle{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .4px;
  margin-bottom: 14px;
}
.worldText{
  max-width: 880px;
  width: min(880px, 92vw);
  max-height: clamp(220px, 56vh, 540px);
  line-height: 1.8;
  color: var(--text);
  opacity: .92;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 10px;
}
@media (min-width: 901px){
  .landingWorld .worldText{
    width: min(1120px, 92vw);
    max-width: min(1120px, 92vw);
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}
.scrollHint{
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  font-size: 12px;
  opacity: .7;
  letter-spacing: .2px;
}
.slideHint{
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .6px;
  opacity: .65;
  text-align: center;
}
.scrollHint::after{
  content:"";
  display:block;
  width: 12px;
  height: 12px;
  margin: 10px auto 0;
  border-right: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
  animation: hintBounce 1.4s ease-in-out infinite;
}
@keyframes hintBounce{
  0%,100%{ transform: translateY(0) rotate(45deg); }
  50%{ transform: translateY(6px) rotate(45deg); }
}
.landingDemo{
  gap:18px;
}
.demoBtn{
  font-size: 22px;
  padding: 16px 24px;
  border-radius: 16px;
}
.sectionHeader{
  width: min(1200px, 92vw);
  margin: 0 auto 20px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  transition: opacity .5s ease, transform .5s ease;
  border-bottom: 1px solid rgba(39,67,95,.45);
  padding-bottom: 14px;
}
#landingWorld .sectionHeader,
#landingCharacters .sectionHeader,
#landingFactions .sectionHeader,
#landingConceptArt .sectionHeader,
#landingAbout .sectionHeader{
  opacity: 0;
  transform: translateX(-26px);
}
.screenLanding[data-active="world"] #landingWorld .sectionHeader,
.screenLanding[data-active="characters"] #landingCharacters .sectionHeader,
.screenLanding[data-active="factions"] #landingFactions .sectionHeader,
.screenLanding[data-active="concept"] #landingConceptArt .sectionHeader,
.screenLanding[data-active="about"] #landingAbout .sectionHeader{
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce){
  #landingWorld .sectionHeader,
  #landingCharacters .sectionHeader,
  #landingFactions .sectionHeader,
  #landingConceptArt .sectionHeader,
  #landingAbout .sectionHeader{
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.sectionTitle{
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 3px;
  font-family: var(--serif);
  text-transform: uppercase;
}
.sectionTitleEn{
  font-size: 11px;
  letter-spacing: 3px;
  opacity: .50;
  text-transform: uppercase;
}
/* ── Faction Panel Layout ── */
.factionPanel {
  display: flex;
  flex-direction: row;
  width: min(1100px, 92vw);
  height: 520px;
  gap: 0;
  border: 1px solid rgba(39,67,95,.30);
}

/* ── Faction Selector (left column) ── */
.factionSelectorList {
  display: flex;
  flex-direction: column;
  width: 132px;
  flex-shrink: 0;
  border-right: 1px solid rgba(39,67,95,.30);
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0;
}
.factionSelectorBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 88px;
  height: 88px;
  padding: 8px;
  background: rgba(6,12,22,.55);
  border: 1px solid rgba(39,67,95,.24);
  cursor: pointer;
  text-align: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.factionSelectorBtn:last-child {
  border-bottom: 1px solid rgba(39,67,95,.24);
}
.factionSelectorBtn:hover {
  background: rgba(39,67,95,.18);
  transform: translateY(-1px);
}
.factionSelectorBtn[data-faction="hainsveil"] { --fc: #4a7fa8; --fc-alpha: rgba(74,127,168,0.12); }
.factionSelectorBtn[data-faction="meridian"]  { --fc: #c4a040; --fc-alpha: rgba(196,160,64,0.12); }
.factionSelectorBtn[data-faction="karloan"]   { --fc: #7a1f3d; --fc-alpha: rgba(122,31,61,0.14); }
.factionSelectorBtn.isActive {
  background: var(--fc-alpha);
  border-color: var(--fc);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 0 1px var(--fc-alpha);
}
.factionSelectorNum {
  display: none;
}
.factionSelectorLogoWrap {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.factionSelectorLogo {
  max-width: 64px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.70;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.factionSelectorBtn.isActive .factionSelectorLogo,
.factionSelectorBtn:hover .factionSelectorLogo {
  opacity: 1;
  transform: scale(1.04);
}

/* ── Faction Detail Panel (right column) ── */
.factionDetailPanel {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: rgba(6,12,22,.40);
}
.factionDetailEntry {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 44px 32px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(39,67,95,.40) transparent;
}
.factionDetailEntry.isActive {
  opacity: 1;
  pointer-events: auto;
}
.factionDetailEntry[data-faction="hainsveil"] { --fc: #4a7fa8; }
.factionDetailEntry[data-faction="hainsveil"] {
  padding: 28px 36px 24px;
  overflow-y: hidden;
}
.factionDetailEntry[data-faction="hainsveil"] .factionDetailTop {
  gap: 22px;
  margin-bottom: 14px;
}
.factionDetailEntry[data-faction="hainsveil"] .factionDetailLogo {
  max-width: 72px;
  max-height: 72px;
}
.factionDetailEntry[data-faction="hainsveil"] .factionDetailDivider {
  margin-bottom: 16px;
}
.factionDetailEntry[data-faction="meridian"]  { --fc: #c4a040; }
.factionDetailEntry[data-faction="karloan"]   { --fc: #7a1f3d; }
.factionDetailTop {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
}
.factionDetailLogo {
  max-width: 80px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.08));
}
.factionDetailTitles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.factionDetailNameCn {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .8px;
  color: rgba(235,242,252,.96);
  line-height: 1;
}
.factionDetailNameEn {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--fc);
  font-weight: 400;
  line-height: 1;
}
.factionDetailDivider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--fc) 0%, rgba(39,67,95,.15) 60%, transparent 100%);
  margin-bottom: 22px;
  flex-shrink: 0;
}
.factionDetailBody {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(235,242,252,.72);
  white-space: normal;
  flex: 1;
}
.factionMotto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 3px solid var(--fc);
  padding: 8px 14px;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--fc) 8%, transparent);
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(235,242,252,.90);
  line-height: 1.4;
}
.factionMotto > div:first-child {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(235,242,252,.96);
  line-height: 1.3;
}
.factionMotto > div:last-child {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--fc);
  text-transform: uppercase;
  line-height: 1.3;
}
.landingConceptArt{
  background: linear-gradient(180deg, rgba(6,10,18,0) 0%, rgba(8,16,28,.24) 44%, rgba(6,10,18,.32) 100%);
  justify-content:flex-start;
  padding-top: 120px;
  gap: 10px;
}
.landingAbout{
  justify-content:flex-start;
  padding-top: 120px;
  gap: 10px;
  background: linear-gradient(180deg, rgba(6,10,18,.06) 0%, rgba(8,16,28,.36) 45%, rgba(6,10,18,.44) 100%);
}
.aboutText{
  width: min(980px, 92vw);
  font-size: 15px;
  line-height: 1.9;
  opacity: .94;
  max-height: min(42vh, 440px);
  overflow-y: auto;
  padding-right: 6px;
  margin: 0 auto;
}
.aboutQuote{
  width: min(980px, 92vw);
  text-align: center;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 1px;
  line-height: 1.45;
  margin: clamp(26px, 7vh, 84px) auto 0;
  opacity: .92;
  color: var(--accent);
}
.conceptGallery{
  width: min(1120px, 92vw);
  display: grid;
  gap: 14px;
}
.conceptViewport{
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(188,163,112,.10), transparent 58%),
    radial-gradient(1000px 600px at 100% 100%, rgba(33,74,104,.18), transparent 62%),
    rgba(8,16,28,.60);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 18px 55px rgba(0,0,0,.42);
  cursor: ew-resize;
  transition: height .62s cubic-bezier(.22,.61,.36,1);
}
.conceptTrack{
  display: flex;
  transition: transform .82s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.conceptSlide{
  flex: 0 0 100%;
  min-width: 0;
  padding: 16px;
}
.conceptVisual{
  width: 100%;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0;
  background:
    radial-gradient(920px 360px at 10% 0%, rgba(255,255,255,.08), transparent 62%),
    radial-gradient(900px 620px at 100% 100%, rgba(14,30,50,.32), transparent 62%),
    rgba(7,14,24,.86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 16px 46px rgba(0,0,0,.34);
}
.conceptImage{
  max-width: 100%;
  max-height: min(44vh, 420px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: saturate(.94) brightness(.92);
  transition: filter .55s ease;
}
.conceptSlide.isActive .conceptImage{
  filter: none;
}
.conceptPlaceholder{
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.72);
  letter-spacing: .4px;
  font-size: 14px;
}
.conceptCaption{
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: .6px;
  text-align: center;
  opacity: .88;
}
.conceptMeta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 4px 0;
}
.conceptProgress{
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  overflow: hidden;
}
.conceptProgressFill{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(156,137,101,.90), rgba(222,207,174,.96));
  transition: width .7s cubic-bezier(.2,.8,.2,1);
}
.conceptCounter{
  min-width: 70px;
  text-align: right;
  letter-spacing: 1.2px;
  font-size: 11px;
  color: rgba(233,241,248,.70);
  font-variant-numeric: tabular-nums;
}
.conceptDots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 54px;
}
.conceptDot{
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  padding: 0;
  transition: transform .32s ease, background .32s ease, box-shadow .32s ease;
}
.conceptDot.isActive{
  transform: scale(1.25);
  background: rgba(194,170,123,.95);
  box-shadow: 0 0 0 5px rgba(154,134,96,.17);
}
.characterGrid{
  display: flex;
  gap: 18px;
  width: min(1200px, 92vw);
  margin: 0 auto;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 8px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.characterCardItem{
  border: 0;
  border-radius: 16px;
  background: transparent;
  padding: 0;
  text-align:center;
  cursor:pointer;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
  perspective: 900px;
  flex: 0 0 min(300px, 70vw);
  max-width: 300px;
  aspect-ratio: 3 / 4.6;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  scroll-snap-align: start;
}
@media (min-width: 1024px){
  .characterCardItem{
    flex: 0 0 calc((100% - 54px) / 4);
    max-width: none;
  }
  .characterGrid .characterCardItem:nth-child(1){ order: 1; }
  .characterGrid .characterCardItem:nth-child(2){ order: 2; }
  .characterGrid .characterCardItem:nth-child(3){ order: 4; }
  .characterGrid .characterCardItem:nth-child(4){ order: 3; }
  .characterGrid .characterCardItem:nth-child(5){ order: 5; }
}
.characterCardItem:hover{
  transform: translateY(-1px);
}
.characterThumb{
  width:100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  user-select: none;
  -webkit-user-select: none;
}
.characterNameBlock{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 4px;
  padding: 10px 0 14px;
  text-align:center;
}
.characterLabel{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
}
.characterLabelCn{
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  color: rgba(235,242,252,.96);
}
.characterLabelEn{
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(235,242,252,.72);
}
:root[data-lang="en"] .characterLabelCn{
  display: none;
}
:root[data-lang="en"] .sectionTitleEn{
  display: none;
}
:root[data-lang="en"] .homeTitleCn{
  display: none;
}
:root[data-lang="en"] .characterLabelEn{
  font-size: 18px;
  letter-spacing: .4px;
  opacity: .95;
}
.cardInner{
  position: relative;
  display:block;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .5s ease;
}
.cardFace{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  height: 100%;
  position: absolute;
  inset: 0;
  padding: 0;
  box-sizing: border-box;
  transition: opacity .2s ease;
}
.cardFront{
  align-items: stretch;
  justify-content: stretch;
  opacity: 1;
  z-index: 2;
}
.cardFrontContent{
  position: relative;
  height: 100%;
}
.cardImageWrap{
  position: absolute;
  inset: 0;
}
.cardFront .characterThumb{
  border-radius: 16px;
}
.cardFront .characterNameBlock{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px 14px;
  background: linear-gradient(180deg, rgba(4,8,16,0) 0%, rgba(4,8,16,.88) 100%);
}
.cardBack{
  padding: 18px;
  border-radius: 16px;
  background: rgb(8,16,28);
  height: 100%;
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
  color: rgba(235,242,252,.95);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  opacity: 0;
  z-index: 1;
}
.cardBack::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}
.characterCardItem.isFlipped .cardFront{
  opacity: 0;
  pointer-events: none;
}
.characterCardItem.isFlipped .cardBack{
  opacity: 1;
  pointer-events: auto;
}
.characterBioText{
  font-size: 14px;
  line-height: 1.7;
  color: rgba(235,242,252,.90);
}
.characterBioName{
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .2px;
  text-transform: none;
  margin-bottom: 10px;
}
.homeHero{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  position: relative;
  z-index: 2;
  /* individual child animations replace the collective reveal */
}
.homeTitle{
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 4px;
  font-family: var(--serif);
  text-transform: uppercase;
  line-height: 1;
}
.homeTitleCn{
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 6px;
  color: rgba(215,230,245,.65);
  margin-bottom: 4px;
  font-family: var(--serif);
}
.homeTitle,
.homeTitleCn{
  will-change: transform, opacity;
}
@keyframes heroReveal{
  from{ opacity: 0; transform: scale(0.96); }
  to{ opacity: 1; transform: scale(1); }
}
.homeOrnament{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 260px;
  margin: 12px auto 10px;
}
.homeOrnament::before,
.homeOrnament::after {
  content: '';
  flex: 1;
  height: 1px;
}
.homeOrnament::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(154,134,96,.55) 40%,
    rgba(154,134,96,.70) 100%);
}
.homeOrnament::after {
  background: linear-gradient(90deg,
    rgba(154,134,96,.70) 0%,
    rgba(154,134,96,.55) 60%,
    transparent 100%);
}
.homeOrnamentDiamond {
  width: 5px;
  height: 5px;
  background: rgba(154,134,96,.75);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.homeTagline {
  font-size: 11px;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: rgba(154,134,96,.55);
  margin-top: 18px;
  font-family: var(--sans);
  font-weight: 400;
}
.screenGame{
  display:flex;
  flex-direction:column;
  height:100%;
}
.screenGame .demoContent{
  display:flex;
  flex-direction:column;
}
.screenGame[data-chapter="chapter1"] .demoContent{
  background: #0b0f1a url("../Assets/background/silvenbridge_bg.jpg") center/cover no-repeat;
}
.screenGame[data-act="chapter1-act1"] .demoContent{
  background: #0b0f1a url("../Assets/background/Lumiere_bg.png") center/cover no-repeat;
}
.screenGame[data-act="chapter2-act1"] .demoContent{
  background: #0b0f1a url("../Assets/background/1040_livingroom.png") center/cover no-repeat;
}
.screenGame[data-act="chapter2-act1b"] .demoContent{
  background: #0b0f1a url("../Assets/background/lumiere_rain.png") center/cover no-repeat;
}
.screenGame[data-act="chapter2-act2-hallway"] .demoContent{
  background: #0b0f1a url("../Assets/background/hallway.png") center/cover no-repeat;
}
.screenGame[data-act="chapter2-act3-bedroom"] .demoContent{
  background: #0b0f1a url("../Assets/background/1042_bedroom.png") center/cover no-repeat;
}
.screenGame[data-act="chapter2-act4-lumiere-rain"] .demoContent{
  background: #0b0f1a url("../Assets/background/lumiere_rain.png") center/cover no-repeat;
}
.screenGame .title{
  display:none;
}
.screenChapter{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0;
}
.screenChapter .demoContent{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px;
}
.chapterList{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 18px;
}
.chapterBtn{
  border:1px solid rgba(255,255,255,.12);
  background-size: 200% 200%;
  animation: chapterGlow 8s ease infinite;
}
.chapterOne{
  background-image: linear-gradient(135deg, rgba(154,134,96,.22), rgba(130,110,75,.16), rgba(27,46,72,.20));
}
.chapterTwo{
  background-image: linear-gradient(135deg, rgba(163,37,58,.24), rgba(154,134,96,.16), rgba(40,60,80,.18));
}
@keyframes chapterGlow{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}
.screenInterlude{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0;
  background: transparent;
  opacity: 0;
  transition: opacity .9s ease;
}
.screenInterlude .demoContent{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px;
  background: #060910;
}
.screenInterlude.interludeHero .demoContent{
  background: transparent;
}
.screenInterlude.isActive{
  opacity: 1;
}
.interludeText{
  font-size: 22px;
  letter-spacing: .5px;
  text-align:center;
  max-width: 80vw;
}
.interludeText.fadeIn{
  opacity: 0;
  animation: interludeFade .7s ease forwards;
}
@keyframes interludeFade{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}
.screenTitle{
  display:flex; align-items:center; justify-content:center;
  padding: 0;
}
.screenTitle .demoContent{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px;
  position: relative;
  overflow: hidden;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + var(--demo-shift-x, 0px)), calc(-50% + var(--demo-shift-y, 0px)))
    rotate(var(--demo-rotate, 0deg)) scale(var(--demo-scale, 1));
}
.titleContent{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 6px;
  position: relative;
  z-index: 3;
}
.titleCard{
  width: 520px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8,16,28,.65);
  backdrop-filter: blur(10px);
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.gameName{ font-size: 40px; font-weight: 700; letter-spacing: 2px; font-family: var(--serif); text-transform: uppercase; }
.gameNameCn{ font-size: 20px; font-weight: 700; letter-spacing: 3px; opacity: .80; font-family: var(--serif); }
.subName{ opacity:.8; margin-top: 6px; }
.autoRotateHint{
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: .4px;
  opacity: .55;
  display: none;
}
.menu{ display:flex; flex-direction:column; gap:10px; margin-top: 18px; }
.screenTitle .menu .btn{
  width: 320px;
  padding: 14px 16px;
}
.titleFooter{ position: fixed; bottom: 18px; opacity:.7; font-size: 13px; }

.btn{ cursor:pointer; border-radius: 14px; padding: 10px 12px; border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: white;
}
.btn.primary{ background: rgba(154,134,96,.18); border-color: rgba(154,134,96,.40); }
.btn.ghost{ background: rgba(255,255,255,.06); }

.gameControls .btn{
  background: rgba(8,16,28,.65);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.gameControls .btn:hover{
  background: rgba(10,18,32,.80);
  border-color: rgba(255,255,255,.2);
}

.btn.choiceBtn{
  position: relative;
  overflow: hidden;
  background: rgba(8,16,28,.86);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.btn.choiceBtn:hover{
  background: rgba(154,134,96,.18);
  border-color: rgba(154,134,96,.40);
}

.choiceBtn::before,
.btn.choiceBtn::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0));
  opacity: .9;
  pointer-events:none;
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
  .choiceBtn,
  .btn.choiceBtn{
    background: rgba(8,16,28,.65);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .choiceBtn::before,
  .btn.choiceBtn::before{
    opacity: .65;
  }
}
.btn:disabled{ opacity:.45; cursor:not-allowed; }
.headerActions .btn.headerNavBtn{
  border: 0;
  background: transparent;
}
.headerActions .btn.headerNavBtn:not(:hover):not(.isActive):not(.soundToggle){
  background: transparent;
}

.modal{
  position: fixed; inset: 0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.45);
  padding: 22px;
  z-index: 20;
}
.modal.demoOverlay{
  padding: 0;
  background: rgba(0,0,0,.6);
  display: block;
}
.modal.demoOverlay .modalCard{
  width: 560px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(var(--demo-rotate, 0deg)) scale(var(--demo-scale, 1));
  transform-origin: center;
}
.formRow{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items:center;
  margin: 10px 0;
}
.formRow label{
  font-size: 13px;
  color: var(--muted);
}
.formRow input{
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,16,28,.68);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.formRow input:focus{
  border-color: rgba(39,67,95,.70);
  background: rgba(8,16,28,.92);
  box-shadow: 0 0 0 2px rgba(39,67,95,.40);
}
.footerCard{
  width: min(1100px, 92vw);
  padding: 10px 0 0;
  background: transparent;
}
.footerGrid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.footerGrid strong{
  color: var(--text);
  font-weight: 600;
}
.footerCopy{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}
.modalCard{
  width:min(560px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,16,28,.65);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  padding: 18px;
  position: relative;
}
.modalClose{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.modalClose:hover{
  background: rgba(255,255,255,.16);
}
#settingsModal .modalCard{
  background: rgba(8,16,28,.65);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  width: min(640px, 92vw);
}
#accountModal .modalCard{
  background: rgba(8,16,28,.65);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
#confirmNewGame .modalCard{
  background: rgba(8,16,28,.65);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.historyList{
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(39,67,95,.38);
  background: rgba(10,20,34,.60);
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.7;
}
.historyItem{
  margin-bottom: 10px;
}
.historyName{
  font-weight: 700;
}
#historyModal .modalCard{
  width: 760px;
}
.menuList{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 8px;
}
.menuList .btn.primary{
  border-color: rgba(154,134,96,.60);
}
.modalTitle{ font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.modalTitleStack{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.modalTitleMeta{
  font-size: 12px;
  font-weight: 600;
  opacity: .75;
}
.settingRow{
  display:grid;
  grid-template-columns: 96px 1fr 92px;
  align-items:center;
  gap:12px;
  padding: 8px 0;
}
.settingRow label,
.settingRow span{
  white-space: nowrap;
}
.settingRow label{ opacity:.85; }
.settingRow input{
  width: 100%;
}
.settingRow span{
  text-align:right;
  font-variant-numeric: tabular-nums;
}
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; opacity:.8; }
.modalBtns{ display:flex; justify-content:flex-end; margin-top: 12px; }
.hint{ margin-top: 10px; opacity:.65; font-size: 12px; }
@media (max-width: 900px){
  html[data-demo-portrait="true"] .screenTitle .demoContent{
    width: 1280px;
    height: 720px;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% + var(--demo-shift-x, 0px)), calc(-50% + var(--demo-shift-y, 0px)))
      rotate(var(--demo-rotate, 0deg)) scale(var(--demo-scale, 1));
  }
  .screenGame .controls{
    --control-btn-size: 56px;
  }
  .demoContent{
    --dialogue-height: 180px;
  }
  .demoContent .text{
    font-size: 22px;
  }
  .demoContent .speaker{
    font-size: 20px;
  }
  .demoContent .btn{
    font-size: 20px;
    padding: 16px 18px;
  }
  .demoContent .menu .btn{
    width: 360px;
    font-size: 20px;
    padding: 16px 18px;
  }
  .modal.demoOverlay .btn{
    font-size: 20px;
    padding: 16px 18px;
  }
  .modalTitle{
    font-size: 20px;
  }
  .demoContent .historyList{
    font-size: 16px;
  }
  .demoContent .settingRow label{
    font-size: 16px;
  }
  .demoContent .settingRow input[type="range"]{
    width: 280px;
  }
  .demoContent .modalBtns .btn{
    width: 200px;
  }
  .screenLanding{
    height: calc(var(--vh, 1vh) * 100);
    min-height: calc(var(--vh, 1vh) * 100);
    scroll-padding-top: calc(var(--mobile-header) + 8px);
  }
  .stickyHeader{
    height: auto;
    padding: 10px 14px 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .logoBtn img{
    height: 56px;
    max-height: 56px;
  }
  .headerCenter{
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .headerCenter .btn{
    font-size: 13px;
    padding: 6px 10px;
  }
  .headerActions{
    order: 2;
    gap: 8px;
  }
  .langToggle,
  .soundToggle,
  .accountToggle{
    min-width: 44px;
    width: auto;
    height: 38px;
  }
  .soundIcon,
  .accountIcon{
    width: 18px;
    height: 18px;
  }
  .btn.primary{
    padding: 8px 12px;
    font-size: 13px;
  }
  .landingSection{
    padding: calc(var(--mobile-header) + 8px) 18px calc(8px + env(safe-area-inset-bottom));
    min-height: calc(var(--vh, 1vh) * 100);
    height: calc(var(--vh, 1vh) * 100);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    justify-items: stretch;
    align-content: stretch;
    gap: 12px;
    scroll-margin-top: calc(var(--mobile-header) * -1 - 6px);
  }
  #landingHome{
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    gap: 18px;
  }
  #landingHome .homeHero{
    align-self: center;
  }
  .landingFooter{
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .landingWorld{
    padding-top: calc(var(--mobile-header) + 6px);
  }
  .landingConceptArt{
    padding-top: calc(var(--mobile-header) + 6px);
  }
  .landingAbout{
    padding-top: calc(var(--mobile-header) + 6px);
  }
  .homeTitle{
    font-size: 38px;
    letter-spacing: 3px;
  }
  .homeTitleCn{
    font-size: 11px;
    letter-spacing: 5px;
  }
  .homeOrnament{
    width: 180px;
  }
  .homeTagline{
    font-size: 10px;
    letter-spacing: 3px;
  }
  .sectionHeader{
    width: min(560px, 92vw);
    margin-bottom: 10px;
  }
  .sectionTitle{
    font-size: 24px;
    letter-spacing: 2px;
  }
  .sectionTitleEn{
    font-size: 10px;
    letter-spacing: 2px;
  }
  .worldText{
    font-size: 14px;
    line-height: 1.75;
  }
  .landingWorld .worldText{
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    padding: 12px 12px 12px 14px;
    border-radius: 0;
    border: 0;
    background: transparent;
    -webkit-overflow-scrolling: touch;
  }
  .scrollHint{
    position: static;
    transform: none;
    margin: 0 auto;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    display: block;
    width: 100%;
    text-align: center;
  }
  .slideHint{
    margin-top: 2px;
    margin-bottom: 4px;
    font-size: 11px;
  }
  .characterGrid{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 8px) / 2);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    width: min(560px, 94vw);
    gap: 8px;
    height: 100%;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    align-content: stretch;
    align-items: stretch;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 2px 6px;
  }
  .characterCardItem{
    max-width: none;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  .characterGrid .characterCardItem:nth-child(1){ order: 1; }
  .characterGrid .characterCardItem:nth-child(2){ order: 3; }
  .characterGrid .characterCardItem:nth-child(3){ order: 4; }
  .characterGrid .characterCardItem:nth-child(4){ order: 2; }
  .characterGrid .characterCardItem:nth-child(5){ order: 5; }
  .cardBack{
    padding: 14px;
  }
  .characterBioText{
    font-size: 13px;
  }
  .characterCardItem{
    aspect-ratio: 3 / 4;
  }
  .characterLabelCn{
    font-size: 15px;
  }
  .characterLabelEn{
    font-size: 11px;
  }
  .factionPanel {
    flex-direction: column;
    height: auto;
    width: min(560px, 94vw);
  }
  .factionSelectorList {
    width: 100%;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid rgba(39,67,95,.30);
    justify-content: center;
    gap: 10px;
    padding: 12px;
  }
  .factionSelectorBtn {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 6px;
    gap: 0;
    border: 1px solid rgba(39,67,95,.24);
    text-align: center;
  }
  .factionSelectorBtn:last-child {
    border-right: 1px solid rgba(39,67,95,.24);
  }
  .factionSelectorBtn.isActive {
    border-color: var(--fc);
  }
  .factionSelectorNum { display: none; }
  .factionSelectorLogoWrap { width: 56px; height: 56px; }
  .factionSelectorLogo { max-width: 52px; max-height: 52px; }
  .factionDetailPanel {
    height: 420px;
  }
  .factionDetailEntry {
    padding: 24px 22px 20px;
  }
  .factionDetailTop {
    gap: 16px;
    margin-bottom: 14px;
  }
  .factionDetailLogo {
    max-width: 52px;
    max-height: 52px;
  }
  .factionDetailNameCn {
    font-size: 20px;
  }
  .factionDetailNameEn {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .factionDetailBody {
    font-size: 12.5px;
    line-height: 1.78;
  }
  .conceptGallery{
    width: min(600px, 94vw);
    gap: 12px;
  }
  .conceptCaption{
    margin-top: 6px;
    font-size: 12px;
  }
  .conceptVisual{
    min-height: 0;
  }
  .conceptSlide{
    padding: 8px;
  }
  .conceptImage{
    max-height: min(32vh, 250px);
  }
  .conceptMeta{
    gap: 10px;
    padding: 2px 2px 0;
  }
  .conceptCounter{
    min-width: 62px;
    font-size: 10px;
  }
  .conceptDots{
    margin-top: 2px;
    margin-bottom: 46px;
  }
  .conceptDot{
    width: 8px;
    height: 8px;
  }
  .aboutText{
    width: min(560px, 94vw);
    max-height: min(40vh, 320px);
  }
  .aboutText{
    font-size: 14px;
    line-height: 1.8;
  }
  .aboutQuote{
    width: min(560px, 94vw);
    font-size: clamp(17px, 4.8vw, 22px);
    line-height: 1.45;
    margin-top: clamp(18px, 5vh, 40px);
  }
  .footerGrid{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hintDesktop{ display: none; }
  .hintMobile{ display: inline-flex; }
}

@supports (height: 100dvh){
  @media (max-width: 900px){
    .screenLanding{
      height: 100dvh;
      min-height: 100dvh;
    }
    .landingSection{
      min-height: 100dvh;
      height: 100dvh;
    }
  }
}

@media (max-width: 520px){
  .stickyHeader{
    padding: 8px 12px 10px;
  }
  .screenLanding{
    scroll-padding-top: calc(var(--mobile-header) + 6px);
  }
  .screenTitle .demoContent{
    padding: 18px;
  }
  .screenTitle .titleContent{
    gap: 4px;
  }
  .screenTitle .gameName{
    font-size: 30px;
  }
  .screenTitle .gameNameCn{
    font-size: 16px;
  }
  .screenTitle .menu{
    margin-top: 12px;
    gap: 8px;
  }
  .autoRotateHint{
    display: block;
  }
  .screenTitle .menu .btn{
    width: min(70vw, 260px);
    font-size: 16px;
    padding: 12px 14px;
  }
  .headerCenter .btn{
    font-size: 12px;
    padding: 6px 8px;
  }
  .btn.primary{
    font-size: 12px;
  }
  .homeTitle{
    font-size: 30px;
    letter-spacing: 2px;
  }
  .homeTitleCn{
    font-size: 10px;
    letter-spacing: 4px;
  }
  .worldText{
    font-size: 13px;
  }
  .characterCardItem{
    max-width: 240px;
  }
}

/* ================================================================
   PREMIUM ANIMATIONS — Mystery Maritime Luxury
   ================================================================ */

/* 0. Undercurrent — slow deep-water ambient pulse on body */
html, body {
  animation: undercurrentPulse 18s ease-in-out infinite;
}
@keyframes undercurrentPulse {
  0%   { background-position: 0% 0%, 100% 100%; }
  33%  { background-position: 12% 8%, 88% 92%; }
  66%  { background-position: 4% 14%, 96% 86%; }
  100% { background-position: 0% 0%, 100% 100%; }
}

/* 0b. Undercurrent overlay — slow drifting light refraction */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 70%, rgba(14,30,50,.16) 0%, transparent 68%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(14,30,50,.18) 0%, transparent 65%);
  animation: undercurrentDrift 26s ease-in-out infinite alternate;
}
@keyframes undercurrentDrift {
  0%   { transform: translate(0px, 0px) scale(1); }
  50%  { transform: translate(-22px, 14px) scale(1.05); }
  100% { transform: translate(14px, -10px) scale(0.96); }
}

/* 1. Film grain atmosphere overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* 2. Home section vignette */
#landingHome {
  overflow: hidden;
}
#landingHome::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 18%, rgba(4,8,14,.80) 100%);
  pointer-events: none;
  z-index: 1;
}
#landingHome .homeHero { z-index: 3; }
#landingHome > .scrollHint { z-index: 3; }

/* Decorative bottom edge stripe */
#landingHome::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80vw);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(154,134,96,.35) 20%,
    rgba(154,134,96,.65) 50%,
    rgba(154,134,96,.35) 80%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* 3. Title — static cool white, no animation */
.homeTitle {
  color: rgba(215,230,245,.90);
}

/* 4. Hero title-centered glow */
.homeHero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 90vw);
  height: 260px;
  background:
    radial-gradient(ellipse 55% 55% at 50% 52%,
      rgba(154,134,96,.26) 0%,
      rgba(154,134,96,.08) 55%,
      rgba(154,134,96,0) 100%);
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
  animation: heroGlowPulse 6s ease-in-out infinite;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1; }
}
.homeHero > * { position: relative; z-index: 1; }

/* 5. Section header — animated gold divider line (replaces static border) */
.sectionHeader {
  border-bottom: none !important;
  position: relative;
  overflow: visible;
}
.sectionHeader::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(154,134,96,.75) 0%,
    rgba(154,134,96,.22) 68%,
    rgba(154,134,96,0) 100%);
  transition: width 1s cubic-bezier(0.4,0,0.2,1) 0.3s;
}
.screenLanding[data-active="world"]      #landingWorld .sectionHeader::after,
.screenLanding[data-active="characters"] #landingCharacters .sectionHeader::after,
.screenLanding[data-active="factions"]   #landingFactions .sectionHeader::after,
.screenLanding[data-active="concept"]    #landingConceptArt .sectionHeader::after,
.screenLanding[data-active="about"]      #landingAbout .sectionHeader::after {
  width: 100%;
}

/* 6. Nav button — animated underline */
.btn.headerNavBtn { position: relative; }
.btn.headerNavBtn::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: rgba(154,134,96,.75);
  border-radius: 1px;
  transition:
    left  0.26s cubic-bezier(0.4,0,0.2,1),
    right 0.26s cubic-bezier(0.4,0,0.2,1);
}
.btn.headerNavBtn:hover::after,
.btn.headerNavBtn.isActive::after {
  left: 13px;
  right: 13px;
}

/* 7. Content stagger — world text */
#landingWorld .worldText {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.8s ease 0.45s,
    transform 0.8s cubic-bezier(0.4,0,0.2,1) 0.45s;
}
.screenLanding[data-active="world"] #landingWorld .worldText {
  opacity: 1;
  transform: translateY(0);
}

/* 8. Content stagger — character cards */
#landingCharacters .characterCardItem {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.55s ease,
    transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
#landingCharacters .characterCardItem:nth-child(1) { transition-delay: 0.18s; }
#landingCharacters .characterCardItem:nth-child(2) { transition-delay: 0.28s; }
#landingCharacters .characterCardItem:nth-child(3) { transition-delay: 0.38s; }
#landingCharacters .characterCardItem:nth-child(4) { transition-delay: 0.48s; }
#landingCharacters .characterCardItem:nth-child(5) { transition-delay: 0.58s; }
.screenLanding[data-active="characters"] #landingCharacters .characterCardItem {
  opacity: 1;
  transform: translateY(0);
}

/* 9. Content stagger — faction panel */
#landingFactions .factionPanel {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.6s ease 0.15s,
    transform 0.6s cubic-bezier(0.4,0,0.2,1) 0.15s;
}
.screenLanding[data-active="factions"] #landingFactions .factionPanel {
  opacity: 1;
  transform: translateY(0);
}

/* 10. Content stagger — concept gallery */
#landingConceptArt .conceptGallery {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  0.7s ease 0.40s,
    transform 0.7s cubic-bezier(0.4,0,0.2,1) 0.40s;
}
.screenLanding[data-active="concept"] #landingConceptArt .conceptGallery {
  opacity: 1;
  transform: translateY(0);
}

/* 11. Content stagger — about section */
#landingAbout .aboutText {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  0.7s ease 0.35s,
    transform 0.7s cubic-bezier(0.4,0,0.2,1) 0.35s;
}
#landingAbout .aboutQuote {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity  0.7s ease 0.75s,
    transform 0.7s cubic-bezier(0.4,0,0.2,1) 0.75s;
}
.screenLanding[data-active="about"] #landingAbout .aboutText,
.screenLanding[data-active="about"] #landingAbout .aboutQuote {
  opacity: 1;
  transform: translateY(0);
}

/* 12. Card hover — steel-blue glow ring */
.characterCardItem .cardFront {
  transition: box-shadow 0.32s ease;
}
.characterCardItem:hover .cardFront {
  box-shadow:
    0 0 0 1.5px rgba(39,67,95,.62),
    0 22px 55px rgba(39,67,95,.40);
}
/* 13. Card back — gold top accent bar */
.characterCardItem .cardBack {
  border-top: 2px solid rgba(154,134,96,.28);
}

/* 14. Scroll hint — muted blue styling */
.scrollHint {
  color: rgba(100,130,158,.55);
  letter-spacing: 1.5px;
  font-size: 11px;
  text-transform: uppercase;
}
.scrollHint::after {
  border-right-color: rgba(100,130,158,.50);
  border-bottom-color: rgba(100,130,158,.50);
}

/* 15. Custom scrollbar — steel blue accent */
.characterGrid::-webkit-scrollbar { height: 2px; }
.characterGrid::-webkit-scrollbar-track { background: rgba(67,124,161,.08); }
.characterGrid::-webkit-scrollbar-thumb {
  background: rgba(39,67,95,.60);
  border-radius: 2px;
}
.worldText::-webkit-scrollbar { width: 2px; }
.worldText::-webkit-scrollbar-thumb {
  background: rgba(39,67,95,.55);
  border-radius: 2px;
}

/* 16. World text — decorative first-line styling */
.worldText {
  text-indent: 0;
}

/* 18. Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  .sectionHeader::after { width: 100%; transition: none; }
  #landingWorld .worldText,
  #landingCharacters .characterCardItem,
  #landingFactions .factionPanel,
  #landingConceptArt .conceptGallery,
  #landingAbout .aboutText,
  #landingAbout .aboutQuote {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 19. Hero cover decorative animations ──────────────────────────── */

/* Geometric concentric rings */
#landingHome .heroGeoBg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
#landingHome .heroGeoCircle {
  position: absolute;
  border: 1px solid rgba(154,134,96,1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  animation: heroCirclePulse 8s ease-in-out infinite;
}
#landingHome .heroGeoCircle:nth-child(1) {
  width: 340px; height: 340px;
  transform: translate(-50%, -50%);
}
#landingHome .heroGeoCircle:nth-child(2) {
  width: 580px; height: 580px;
  transform: translate(-50%, -50%);
  animation-delay: 2s;
}
#landingHome .heroGeoCircle:nth-child(3) {
  width: 820px; height: 820px;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}
@keyframes heroCirclePulse {
  0%, 100% {
    opacity: 0.06;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.13;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* Corner diamond ornaments */
#landingHome .heroDiamondWrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
#landingHome .heroDiamond {
  position: absolute;
  width: 13px; height: 13px;
  border: 1px solid rgba(154,134,96,.3);
  transform: rotate(45deg);
  animation: heroDiamondSpin 10s ease-in-out infinite;
}
#landingHome .heroDiamond:nth-child(1) { top: 56px; left: 56px; }
#landingHome .heroDiamond:nth-child(2) { top: 56px; right: 56px; animation-delay: 2.5s; }
@keyframes heroDiamondSpin {
  0%, 100% { transform: rotate(45deg); }
  50% { transform: rotate(135deg); }
}

/* Floating dust motes */
#landingHome .heroDustWrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
#landingHome .heroDust {
  position: absolute;
  width: 1px; height: 1px;
  background: rgba(154,134,96,.4);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(154,134,96,.3);
  animation: heroDustRise 20s infinite linear;
}
#landingHome .heroDust:nth-child(1) { left: 12%; animation-delay: 0s;   animation-duration: 18s; }
#landingHome .heroDust:nth-child(2) { left: 23%; animation-delay: 3s;   animation-duration: 22s; }
#landingHome .heroDust:nth-child(3) { left: 34%; animation-delay: 6s;   animation-duration: 20s; }
#landingHome .heroDust:nth-child(4) { left: 46%; animation-delay: 2s;   animation-duration: 24s; }
#landingHome .heroDust:nth-child(5) { left: 57%; animation-delay: 5s;   animation-duration: 19s; }
#landingHome .heroDust:nth-child(6) { left: 67%; animation-delay: 8s;   animation-duration: 21s; }
#landingHome .heroDust:nth-child(7) { left: 78%; animation-delay: 4s;   animation-duration: 23s; }
#landingHome .heroDust:nth-child(8) { left: 88%; animation-delay: 7s;   animation-duration: 17s; }
@keyframes heroDustRise {
  0%   { bottom: -5%;   opacity: 0;   transform: translateX(0); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { bottom: 105%; opacity: 0;   transform: translateX(70px); }
}

/* Radial fog drift */
#landingHome .heroFog {
  position: absolute;
  width: 200%; height: 100%;
  left: 0; top: 0;
  background: radial-gradient(ellipse at center,
    transparent 22%,
    rgba(4,8,14,.82) 78%);
  pointer-events: none;
  z-index: 1;
  animation: heroFogDrift 24s ease-in-out infinite;
}
@keyframes heroFogDrift {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-25%); }
}

/* Staggered entrance for hero text content */
.homeTitleCn {
  opacity: 0;
  animation: heroTextRise 1.1s ease forwards 0.3s;
}
.homeOrnament {
  opacity: 0;
  transform: scaleX(0.15);
  transform-origin: center;
  animation: heroOrnamentExpand 1.4s ease forwards 0.75s;
}
.homeTitle {
  opacity: 0;
  animation: heroMainTitleReveal 1.5s ease forwards 1s;
}
@keyframes heroTextRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroOrnamentExpand {
  from { opacity: 0; transform: scaleX(0.15); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes heroMainTitleReveal {
  from { opacity: 0; transform: translateY(30px); letter-spacing: 14px; }
  to   { opacity: 1; transform: translateY(0);    letter-spacing: 4px; }
}

/* ── Title glitch pseudo-layers ───────────────────────────────────── */
.homeTitle {
  position: relative;
  overflow: visible;
}
.homeTitle::before,
.homeTitle::after {
  content: attr(data-glitch);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: inherit;
  white-space: nowrap;
}
.homeTitle.is-glitch::before {
  animation: heroGlitchA 0.45s steps(2) forwards;
  color: rgba(154, 134, 96, 0.92);
  left: 3px;
}
.homeTitle.is-glitch::after {
  animation: heroGlitchB 0.45s steps(2) forwards;
  color: rgba(90, 140, 200, 0.65);
  left: -3px;
}
@keyframes heroGlitchA {
  0%  { opacity: 0; clip-path: none; }
  25% { opacity: 1; clip-path: polygon(0 8%, 100% 8%, 100% 30%, 0 30%); }
  50% { clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%); }
  75% { opacity: 0.6; clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%); }
  100%{ opacity: 0; clip-path: none; }
}
@keyframes heroGlitchB {
  0%  { opacity: 0; clip-path: none; }
  25% { opacity: 1; clip-path: polygon(0 65%, 100% 65%, 100% 90%, 0 90%); }
  50% { clip-path: polygon(0 35%, 100% 35%, 100% 55%, 0 55%); }
  75% { opacity: 0.5; clip-path: polygon(0 70%, 100% 70%, 100% 88%, 0 88%); }
  100%{ opacity: 0; clip-path: none; }
}

/* Reduced-motion: skip all hero decorative animations */
@media (prefers-reduced-motion: reduce) {
  .homeTitleCn, .homeOrnament, .homeTitle {
    opacity: 1; animation: none; transform: none;
  }
  #landingHome .heroGeoCircle,
  #landingHome .heroDiamond,
  #landingHome .heroDust,
  #landingHome .heroFog {
    animation: none;
    display: none;
  }
  .homeTitle::before, .homeTitle::after { display: none; }
}
