/* Experience polish: cinematic entry, local accounts, luminous creation and brighter game UI. */

:root {
  --sky-50: #f8fbf6;
  --sky-100: #edf6f1;
  --sky-200: #dcece7;
  --celadon: #8fc2b5;
  --celadon-deep: #2f7468;
  --sun-gold: #d8ae59;
  --sun-pale: #f4e2ad;
  --ink-jade: #173e37;
}

.backend-boot { display: grid; min-height: 100vh; place-items: center; color: #234d43; background: radial-gradient(circle at 50% 38%,#fffbe8,#e5f1eb 44%,#c9e0d7); }
.backend-boot > div { display: grid; justify-items: center; gap: 8px; }
.backend-boot i { display: grid; width: 72px; height: 72px; color: #8e692f; border: 1px solid rgba(173,132,59,.42); border-radius: 50%; place-items: center; font-family: "STKaiti","KaiTi",serif; font-size: 30px; font-style: normal; box-shadow: 0 0 0 10px rgba(60,126,111,.06),0 0 50px rgba(209,166,80,.17); animation: formation-spin 8s linear infinite; }
.backend-boot p { margin: 18px 0 0; font-family: "STKaiti","KaiTi",serif; font-size: 20px; letter-spacing: .16em; }
.backend-boot span { color: #81968f; font: 7px/1 Georgia,serif; letter-spacing: .22em; }

/* ---------- Cinematic landing ---------- */
.landing {
  --landing-x: 0px;
  --landing-y: 0px;
  background: #061712;
}

.landing::before {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(2,16,13,.94), rgba(4,24,19,.68) 36%, rgba(7,22,18,.13) 68%, transparent),
    linear-gradient(180deg, transparent 44%, rgba(3,17,14,.88));
}

.landing__backdrop {
  position: absolute;
  z-index: -10;
  inset: -3%;
  background: url("./assets/images/style-baseline.png") center / cover no-repeat;
  filter: saturate(1.03) contrast(1.04);
  transform: translate3d(var(--landing-x), var(--landing-y), 0) scale(1.06);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), filter .9s;
  will-change: transform;
  animation: landscape-breathe 10s ease-in-out infinite alternate;
}

.landing__sunbreath {
  position: absolute;
  z-index: -8;
  top: -32%;
  right: -10%;
  width: 76vw;
  aspect-ratio: 1;
  opacity: .68;
  background:
    radial-gradient(circle, rgba(255,242,198,.4) 0 2%, rgba(244,213,145,.13) 16%, transparent 48%),
    conic-gradient(from 170deg, transparent 0 13%, rgba(255,233,168,.09) 17%, transparent 21% 40%, rgba(255,238,183,.07) 44%, transparent 48%);
  filter: blur(5px);
  animation: sun-breath 7s ease-in-out infinite alternate;
}

.landing__clouds {
  position: absolute;
  z-index: -6;
  right: -24%;
  left: -24%;
  height: 38%;
  opacity: .4;
  background:
    radial-gradient(ellipse at 8% 55%, rgba(236,243,229,.55) 0 9%, transparent 31%),
    radial-gradient(ellipse at 32% 62%, rgba(236,243,229,.48) 0 11%, transparent 34%),
    radial-gradient(ellipse at 58% 50%, rgba(238,244,232,.52) 0 12%, transparent 36%),
    radial-gradient(ellipse at 82% 59%, rgba(234,241,227,.44) 0 10%, transparent 33%);
  filter: blur(18px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.landing__clouds--far { top: 26%; animation: cloud-far 30s linear infinite alternate; }
.landing__clouds--near { z-index: 2; bottom: -14%; height: 50%; opacity: .28; filter: blur(27px); animation: cloud-near 22s linear infinite alternate; }

.landing__veil {
  z-index: 0;
  left: clamp(80px, 20vw, 390px);
  bottom: -36%;
  width: min(52vw, 900px);
  height: min(52vw, 900px);
  border-color: rgba(230,206,146,.12);
  box-shadow: 0 0 0 7vw rgba(215,193,145,.025), 0 0 0 14vw rgba(215,193,145,.018), inset 0 0 80px rgba(217,188,119,.025);
  animation: veil-breathe 8s ease-in-out infinite alternate;
}

.landing__formation {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: clamp(250px, 31vw, 600px);
  width: clamp(350px, 42vw, 790px);
  aspect-ratio: 1;
  opacity: .2;
  color: var(--sun-pale);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.formation__orbit {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(238,211,145,.32);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(226,192,111,.08), inset 0 0 38px rgba(226,192,111,.05);
  animation: formation-spin 46s linear infinite;
}

.formation__orbit::before,
.formation__orbit::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(238,211,145,.2);
  border-radius: 50%;
}

.formation__orbit::after { inset: 24%; border-style: solid; border-radius: 2px; transform: rotate(45deg); }
.formation__orbit--inner { inset: 27%; animation-duration: 28s; animation-direction: reverse; }

.formation__core {
  position: absolute;
  inset: 42%;
  display: grid;
  border: 1px solid rgba(239,213,151,.3);
  border-radius: 50%;
  place-items: center;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(22px, 2.4vw, 40px);
  text-shadow: 0 0 22px rgba(244,218,153,.58);
  animation: formation-core 3.4s ease-in-out infinite alternate;
}

.formation__sigils { position: absolute; inset: 0; animation: formation-spin 68s linear infinite reverse; }
.formation__sigils i { position: absolute; top: 48%; left: 48%; display: grid; width: 34px; height: 34px; place-items: center; font-family: "STKaiti", "KaiTi", serif; font-size: 16px; font-style: normal; }
.formation__sigils i:nth-child(1) { transform: translateY(-17vw); }
.formation__sigils i:nth-child(2) { transform: rotate(45deg) translateY(-17vw) rotate(-45deg); }
.formation__sigils i:nth-child(3) { transform: rotate(90deg) translateY(-17vw) rotate(-90deg); }
.formation__sigils i:nth-child(4) { transform: rotate(135deg) translateY(-17vw) rotate(-135deg); }
.formation__sigils i:nth-child(5) { transform: rotate(180deg) translateY(-17vw) rotate(-180deg); }
.formation__sigils i:nth-child(6) { transform: rotate(225deg) translateY(-17vw) rotate(-225deg); }
.formation__sigils i:nth-child(7) { transform: rotate(270deg) translateY(-17vw) rotate(-270deg); }
.formation__sigils i:nth-child(8) { transform: rotate(315deg) translateY(-17vw) rotate(-315deg); }

.landing__blade-trails,
.landing__particles,
.landing__talismans { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }

.landing__blade-trails i { position: absolute; top: 64%; left: -24%; width: 23vw; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(218,244,230,.9) 72%, #fff7d8); box-shadow: 0 0 8px rgba(192,244,219,.78), 0 0 18px rgba(229,210,145,.34); transform: rotate(-18deg); animation: blade-flight 10.5s 2s linear infinite; }
.landing__blade-trails i::after { content: ""; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; background: #fff6ce; border-radius: 50%; box-shadow: 0 0 16px 5px rgba(222,243,222,.62); }
.landing__blade-trails i:nth-child(2) { top: 36%; width: 15vw; animation-delay: -3.8s; animation-duration: 13s; }
.landing__blade-trails i:nth-child(3) { top: 80%; width: 12vw; animation-delay: -7.2s; animation-duration: 16s; }
.landing__blade-trails i:nth-child(4) { top: 22%; width: 9vw; animation-delay: -9.6s; animation-duration: 18s; }

.landing__talismans i { position: absolute; display: grid; width: 24px; height: 52px; opacity: .16; color: #3d2b18; background: linear-gradient(#dfc36f,#ad8737); border: 1px solid rgba(255,227,151,.72); place-items: center; font-family: "STKaiti", "KaiTi", serif; font-size: 13px; font-style: normal; clip-path: polygon(0 0,100% 0,100% 90%,75% 100%,50% 91%,25% 100%,0 90%); filter: drop-shadow(0 0 12px rgba(237,205,121,.38)); animation: talisman-float 7s ease-in-out infinite alternate; }
.landing__talismans i:nth-child(1) { top: 18%; left: 13%; transform: rotate(-11deg); }
.landing__talismans i:nth-child(2) { top: 72%; left: 55%; transform: rotate(8deg) scale(.72); animation-delay: -2.8s; }
.landing__talismans i:nth-child(3) { top: 31%; right: 17%; transform: rotate(14deg) scale(.62); animation-delay: -5s; }

.landing__particles i { position: absolute; top: var(--y); left: var(--x); width: var(--size); height: var(--size); opacity: 0; background: #f4df9f; border-radius: 50%; box-shadow: 0 0 7px rgba(239,216,148,.9); animation: landing-particle var(--duration) var(--delay) ease-in-out infinite; }

.landing__frame { position: absolute; z-index: 5; top: 30px; right: 34px; left: 34px; display: flex; align-items: center; gap: 12px; color: rgba(246,228,184,.46); font: 8px/1 Georgia, serif; letter-spacing: .3em; pointer-events: none; }
.landing__frame::before,.landing__frame::after { content: ""; position: absolute; width: 18px; height: 18px; border-style: solid; border-color: rgba(233,208,147,.32); }
.landing__frame::before { top: -12px; left: -14px; border-width: 1px 0 0 1px; }
.landing__frame::after { top: -12px; right: -14px; border-width: 1px 1px 0 0; }
.landing__frame i { width: 90px; height: 1px; background: linear-gradient(90deg, rgba(232,207,147,.36), transparent); }
.landing__frame em { margin-left: auto; color: var(--sun-pale); font-family: "STKaiti", "KaiTi", serif; font-size: 18px; font-style: normal; }

.landing__content { position: relative; z-index: 6; justify-self: start; width: min(760px, calc(100% - 80px)); margin-left: clamp(80px, 23vw, 440px); animation: content-awaken 1.35s .2s cubic-bezier(.16,.84,.24,1) both; }
.landing .seal { position: relative; display: inline-grid; min-width: 244px; margin-bottom: 18px; padding: 8px 13px 8px 30px; gap: 2px; overflow: hidden; background: linear-gradient(90deg, rgba(7,29,24,.7), rgba(7,29,24,.14)); border-color: rgba(234,215,165,.34); box-shadow: inset 3px 0 rgba(222,185,100,.76), 0 10px 28px rgba(0,0,0,.12); backdrop-filter: blur(12px); animation: seal-enter .8s .85s ease-out both; }
.landing .seal > i { position: absolute; top: 50%; left: 13px; width: 7px; height: 7px; border: 1px solid var(--sun-pale); transform: translateY(-50%) rotate(45deg); animation: seal-rune 3s ease-in-out infinite; }
.landing .seal > span { font-size: 10px; letter-spacing: .28em; }
.landing .seal > em { color: rgba(231,217,183,.3); font: 5px/1.2 Georgia,serif; font-style: normal; letter-spacing: .18em; }

.landing__title-wrap { position: relative; display: flex; align-items: center; }
.landing__title-index { position: absolute; left: -48px; bottom: 18px; color: rgba(231,211,164,.26); font: 6px/1.8 Georgia,serif; letter-spacing: .22em; transform: rotate(-90deg); transform-origin: left bottom; }
.landing h1 { position: relative; display: flex; align-items: baseline; gap: .03em; color: rgba(249,239,210,.92); font-size: clamp(86px,10vw,154px); letter-spacing: -.09em; text-shadow: 0 12px 38px rgba(0,0,0,.5),0 0 38px rgba(232,205,139,.1); clip-path: inset(0 100% 0 0); animation: title-ink-reveal 1.25s .62s cubic-bezier(.18,.86,.22,1) forwards; }
.landing h1::after { content: attr(data-title); position: absolute; inset: 0; z-index: -1; color: transparent; -webkit-text-stroke: 1px rgba(242,219,160,.3); filter: blur(1px); transform: translate(6px,3px); animation: title-spirit 4s 2s ease-in-out infinite; }
.landing h1 span { background: linear-gradient(110deg,#9f7c3d 4%,#f7e5ae 38%,#fff4cb 53%,#b88d45 78%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: title-gold-flow 4.8s 1.8s ease-in-out infinite alternate; }
.landing h1 em { font-style: normal; font-size: .78em; }

.landing__subtitle { display: flex; align-items: center; gap: 14px; margin: 22px 0 28px 2px; color: rgba(248,239,219,.8); font-size: clamp(17px,1.55vw,24px); letter-spacing: .2em; animation: subtitle-enter .8s 1.15s ease-out both; }
.landing__subtitle i { width: 30px; height: 1px; background: linear-gradient(90deg,transparent,rgba(239,214,154,.65)); }
.landing__subtitle i:last-child { transform: scaleX(-1); }

.landing__actions { align-items: stretch; gap: 12px; margin-left: 2px; animation: actions-awaken .8s 1.42s ease-out both; }
.landing-cta { position: relative; display: grid; min-width: 226px; min-height: 68px; padding: 0 18px 0 26px; grid-template-columns: 1fr 32px; align-items: center; overflow: hidden; color: #fff8df; background: linear-gradient(115deg,rgba(112,77,26,.92),rgba(194,151,68,.98) 52%,rgba(111,76,25,.94)); background-size: 220% 100%; border: 1px solid rgba(255,227,158,.78); border-radius: 2px 12px 2px 12px; box-shadow: 0 14px 42px rgba(75,49,6,.34),inset 0 0 0 1px rgba(255,244,210,.1),0 0 28px rgba(220,177,80,.12); animation: cta-glow 3.2s 2s ease-in-out infinite; }
.landing-cta::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255,238,191,.2); border-radius: 1px 8px 1px 8px; }
.landing-cta::after { content: ""; position: absolute; top: -80%; bottom: -80%; left: -35%; width: 24%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent); transform: rotate(18deg); animation: cta-shine 3.8s 2.2s ease-in-out infinite; }
.landing-cta > span { position: relative; z-index: 2; display: grid; justify-items: start; font-family: "STKaiti","KaiTi",serif; font-size: 21px; letter-spacing: .16em; }
.landing-cta small { color: rgba(255,244,210,.46); font: 6px/1.6 Georgia,serif; letter-spacing: .2em; }
.landing-cta > em { position: relative; z-index: 2; display: grid; width: 30px; height: 30px; color: #5a3a10; background: rgba(255,238,185,.78); border-radius: 50%; place-items: center; font-family: "STKaiti","KaiTi",serif; font-size: 15px; font-style: normal; box-shadow: 0 0 18px rgba(255,231,163,.48); transition: transform .35s; }
.landing-cta__aura { position: absolute; z-index: -1; inset: -18px; border: 1px solid rgba(236,207,138,.22); border-radius: 50%; animation: cta-aura 2.8s ease-out infinite; }
.landing-cta:hover { transform: translateY(-3px) scale(1.02); background-position: 100% 0; box-shadow: 0 18px 52px rgba(93,60,7,.4),0 0 38px rgba(228,189,98,.22); }
.landing-cta:hover > em { transform: rotate(360deg) scale(1.08); }

.landing-continue { display: grid; min-width: 148px; min-height: 68px; padding: 0 16px; grid-template-columns: 1fr auto; align-content: center; color: rgba(247,235,208,.75); background: linear-gradient(135deg,rgba(6,30,25,.72),rgba(18,59,48,.46)); border-color: rgba(230,206,150,.26); border-radius: 2px 10px 2px 10px; backdrop-filter: blur(14px); }
.landing-continue span { font-family: "STKaiti","KaiTi",serif; font-size: 17px; letter-spacing: .15em; }
.landing-continue small { grid-column: 1; color: rgba(236,219,181,.3); font: 6px/1 Georgia,serif; letter-spacing: .18em; }
.landing-continue i { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--sun-pale); font-style: normal; transition: transform .25s; }
.landing-continue:hover { color: #fff3d4; border-color: rgba(238,211,149,.52); background: rgba(16,61,50,.72); }
.landing-continue:hover i { transform: translateX(4px); }

.landing .feature-row { display: grid; width: min(610px,100%); margin: 42px 0 0; grid-template-columns: repeat(4,1fr); gap: 0; animation: features-awaken .8s 1.7s ease-out both; }
.landing .feature-row li { display: flex; min-width: 0; padding: 0 14px; align-items: center; gap: 8px; border-left: 1px solid rgba(230,206,150,.17); }
.landing .feature-row li:first-child { padding-left: 0; border-left: 0; }
.landing .feature-row li + li::before { content: none; }
.landing .feature-row li > i { color: var(--sun-pale); font-family: "STKaiti","KaiTi",serif; font-size: 16px; font-style: normal; text-shadow: 0 0 12px rgba(231,199,119,.35); }
.landing .feature-row li > span { display: grid; gap: 2px; color: rgba(239,229,205,.64); font-size: 10px; letter-spacing: .12em; }
.landing .feature-row small { color: rgba(230,214,177,.24); font: 5px/1 Georgia,serif; letter-spacing: .12em; }

.landing__scroll-cue { position: absolute; z-index: 5; right: 31px; bottom: 74px; display: grid; justify-items: center; gap: 10px; color: rgba(239,221,178,.38); font-size: 7px; letter-spacing: .28em; writing-mode: vertical-rl; }
.landing__scroll-cue i { width: 1px; height: 54px; background: linear-gradient(rgba(235,211,153,.48),transparent); overflow: hidden; }
.landing__scroll-cue i::after { content: ""; display: block; width: 1px; height: 18px; background: #f6dda0; animation: cue-line 2.4s ease-in-out infinite; }
.landing__version { display: flex; align-items: center; gap: 8px; }
.landing__version i { width: 14px; height: 1px; background: rgba(233,210,156,.36); }

.landing__rift { position: absolute; z-index: 30; inset: 0; display: grid; opacity: 0; background: rgba(241,222,171,0); place-items: center; pointer-events: none; }
.landing__rift i { width: 1px; height: 0; background: #fff8dc; box-shadow: 0 0 20px #fff,0 0 80px 18px rgba(245,218,146,.68),0 0 180px 48px rgba(164,224,194,.34); }
.landing.is-departing .landing__rift { opacity: 1; animation: rift-flash .98s cubic-bezier(.7,0,.2,1) forwards; }
.landing.is-departing .landing__rift i { animation: rift-open .98s cubic-bezier(.68,0,.2,1) forwards; }
.landing.is-departing .landing__backdrop { transform: translate3d(var(--landing-x),var(--landing-y),0) scale(1.24); filter: saturate(1.25) brightness(1.2); }
.landing.is-departing .landing__content { opacity: 0; filter: blur(6px); transform: scale(1.08); transition: .7s ease-in; }
.landing.is-departing .landing__formation { opacity: 0; transform: translate(-50%,-50%) scale(2); transition: .8s ease-in; }

/* ---------- Local account gate ---------- */
.account-shell,.profiles-shell { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; color: var(--ink-jade); background: linear-gradient(140deg,#f7fbf4,#deeee7); isolation: isolate; }
.account-shell__scene,.profiles-shell__scene { position: absolute; z-index: -5; inset: -3%; background: linear-gradient(90deg,rgba(244,250,245,.32),rgba(239,248,245,.76)),url("./assets/images/style-baseline.png") center / cover no-repeat; filter: saturate(.75) brightness(1.25); animation: light-scene-breathe 14s ease-in-out infinite alternate; }
.account-shell::before,.profiles-shell::before { content: ""; position: absolute; z-index: -3; inset: 0; background: radial-gradient(circle at 72% 20%,rgba(255,242,194,.55),transparent 28%),linear-gradient(90deg,rgba(245,250,246,.96) 0 34%,rgba(245,250,246,.38) 70%,rgba(235,246,242,.72)); }
.account-shell__cloud,.profiles-shell__mist { position: absolute; z-index: -1; right: -20%; left: -20%; height: 38%; background: radial-gradient(ellipse at 20% 50%,rgba(255,255,255,.9),transparent 34%),radial-gradient(ellipse at 58% 62%,rgba(255,255,255,.72),transparent 36%),radial-gradient(ellipse at 84% 44%,rgba(255,255,255,.82),transparent 32%); filter: blur(24px); opacity: .62; pointer-events: none; }
.account-shell__cloud--one { bottom: -13%; animation: cloud-far 24s linear infinite alternate; }
.account-shell__cloud--two { top: -14%; opacity: .28; animation: cloud-near 30s linear infinite alternate; }
.account-shell__runes { position: absolute; z-index: -1; top: 50%; right: 6vw; width: min(42vw,640px); aspect-ratio: 1; border: 1px solid rgba(51,116,104,.12); border-radius: 50%; transform: translateY(-50%); animation: formation-spin 65s linear infinite; }
.account-shell__runes::before,.account-shell__runes::after { content: ""; position: absolute; inset: 12%; border: 1px dashed rgba(187,147,72,.17); border-radius: 50%; }
.account-shell__runes::after { inset: 30%; border-style: solid; border-radius: 4px; transform: rotate(45deg); }
.account-shell__runes i { position: absolute; color: rgba(45,102,92,.2); font-family: "STKaiti","KaiTi",serif; font-size: 22px; font-style: normal; }
.account-shell__runes i:nth-child(1){top:4%;left:48%}.account-shell__runes i:nth-child(2){right:4%;top:48%}.account-shell__runes i:nth-child(3){bottom:4%;left:48%}.account-shell__runes i:nth-child(4){left:4%;top:48%}

.account-header,.profiles-header { position: relative; z-index: 5; display: flex; min-height: 82px; padding: 0 clamp(28px,4vw,72px); align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(40,93,82,.13); background: rgba(248,252,248,.74); backdrop-filter: blur(20px); }
.account-brand b,.profiles-header .brand b { color: var(--ink-jade); }
.account-brand small,.profiles-header .brand small { color: rgba(29,79,70,.42); }
.account-header > p { color: rgba(31,79,70,.48); font-family: "STKaiti","KaiTi",serif; font-size: 14px; letter-spacing: .16em; }

.account-card { position: relative; z-index: 3; width: min(520px,calc(100% - 36px)); margin: clamp(32px,7vh,78px) 0 60px clamp(36px,12vw,210px); padding: 38px 42px 30px; background: linear-gradient(145deg,rgba(255,254,248,.94),rgba(241,247,240,.9)); border: 1px solid rgba(47,116,104,.19); border-radius: 4px 28px 4px 28px; box-shadow: 0 28px 80px rgba(34,79,68,.16),inset 0 0 0 5px rgba(255,255,255,.34); backdrop-filter: blur(20px); animation: account-card-enter .7s cubic-bezier(.2,.8,.2,1) both; }
.account-card::before,.account-card::after { content: ""; position: absolute; width: 48px; height: 48px; border-color: rgba(183,142,64,.45); border-style: solid; pointer-events: none; }
.account-card::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.account-card::after { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }
.account-card__seal { position: absolute; top: 32px; right: 38px; display: grid; width: 56px; height: 56px; color: #8b6030; border: 1px solid rgba(178,129,49,.42); border-radius: 50%; place-items: center; font-family: "STKaiti","KaiTi",serif; font-size: 22px; }
.account-card__seal i { position: absolute; inset: -7px; border: 1px dashed rgba(48,113,101,.22); border-radius: 50%; animation: formation-spin 18s linear infinite; }
.account-card__heading { padding-right: 74px; }
.account-card__heading p { margin: 0 0 6px; color: #a57a39; font-size: 9px; letter-spacing: .3em; }
.account-card__heading h1 { margin: 0; color: #183f37; font-family: "STKaiti","KaiTi",serif; font-size: 36px; font-weight: 400; letter-spacing: .13em; }
.account-card__heading > span { display: block; margin-top: 9px; color: #69827b; font-size: 11px; line-height: 1.7; }
.account-tabs { display: grid; margin: 28px 0 20px; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(42,102,91,.14); }
.account-tabs button { position: relative; padding: 12px; color: #789089; background: none; border: 0; cursor: pointer; }
.account-tabs button::after { content: ""; position: absolute; right: 50%; bottom: -1px; left: 50%; height: 2px; background: var(--sun-gold); transition: .25s; }
.account-tabs button.is-active { color: var(--ink-jade); font-weight: 700; }
.account-tabs button.is-active::after { right: 8%; left: 8%; }
.account-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-form label { display: grid; gap: 7px; }
.account-form label > span { color: #4f7168; font-size: 10px; letter-spacing: .12em; }
.account-form input { width: 100%; min-width: 0; min-height: 48px; padding: 0 13px; color: #173d35; background: rgba(255,255,255,.72); border: 1px solid rgba(43,104,92,.2); border-radius: 2px 8px 2px 8px; outline: none; transition: .2s; }
.account-form input:focus { border-color: #5c9c8e; box-shadow: 0 0 0 3px rgba(91,157,142,.12); }
.account-message { grid-column: 1 / -1; margin: 0; padding: 10px 12px; color: #9b4437; background: #fff0ea; border-left: 3px solid #c56f5e; font-size: 11px; }
.account-submit { grid-column: 1 / -1; display: flex; min-height: 54px; margin-top: 4px; padding: 0 20px; align-items: center; justify-content: space-between; color: #fffdf4; background: linear-gradient(110deg,#286b5f,#4c9383); border: 1px solid #75ad9f; border-radius: 2px 10px 2px 10px; box-shadow: 0 12px 28px rgba(37,101,89,.18); cursor: pointer; }
.account-submit span { font-family: "STKaiti","KaiTi",serif; font-size: 17px; letter-spacing: .18em; }
.account-submit i { font-style: normal; transition: transform .25s; }
.account-submit:hover i { transform: translateX(4px); }
.account-local-note { margin: 18px 0 0; color: #7e908b; font-size: 9px; line-height: 1.6; }
.account-local-note i { margin-right: 6px; padding: 2px 5px; color: #8b692d; border: 1px solid rgba(173,132,59,.3); font-style: normal; }
.account-shell__quote { position: absolute; right: clamp(34px,8vw,150px); bottom: 54px; color: rgba(26,72,63,.34); font-family: "STKaiti","KaiTi",serif; font-size: 17px; letter-spacing: .16em; writing-mode: vertical-rl; }

/* ---------- Character archive ---------- */
.profiles-shell__mist { bottom: -12%; animation: cloud-far 26s linear infinite alternate; }
.profiles-header > div { display: flex; align-items: baseline; gap: 9px; }
.profiles-header > div small { color: #81968f; font-size: 8px; letter-spacing: .16em; }
.profiles-header > div b { color: #204f46; font-family: "STKaiti","KaiTi",serif; font-size: 18px; font-weight: 400; }
.profiles-header > div span { color: #8ca098; font-size: 9px; }
.profile-logout { padding: 8px 13px; color: #5b776f; background: rgba(255,255,255,.46); border: 1px solid rgba(45,100,89,.18); border-radius: 999px; cursor: pointer; }
.profiles-content { position: relative; z-index: 2; width: min(1180px,calc(100% - 48px)); margin: clamp(36px,7vh,70px) auto 80px; }
.profiles-heading p { margin: 0; color: #a77d3d; font-size: 9px; letter-spacing: .28em; }
.profiles-heading h1 { margin: 8px 0 6px; color: #193f37; font-family: "STKaiti","KaiTi",serif; font-size: clamp(34px,4vw,54px); font-weight: 400; letter-spacing: .12em; }
.profiles-heading > span { color: #68837b; font-size: 12px; }
.profiles-message,.creation-server-error { margin: 18px 0 0; padding: 11px 14px; color: #93483d; background: rgba(255,239,233,.88); border: 1px solid rgba(185,91,76,.2); border-left: 3px solid #bd6555; border-radius: 2px 8px 2px 8px; font-size: 11px; }
.profile-grid { display: grid; margin-top: 30px; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-card { position: relative; display: grid; min-width: 0; min-height: 142px; padding: 24px 24px 22px; grid-template-columns: 36px 72px minmax(0,1.4fr) minmax(130px,.85fr) auto; align-items: center; gap: 16px; overflow: hidden; color: #254b43; background: linear-gradient(115deg,rgba(255,254,248,.94),rgba(236,246,240,.88)); border: 1px solid rgba(42,106,93,.18); border-radius: 3px 18px 3px 18px; box-shadow: 0 16px 44px rgba(37,83,72,.1); text-align: left; cursor: pointer; transition: transform .28s,border-color .28s,box-shadow .28s; }
.profile-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(191,151,76,.11); border-radius: 2px 13px 2px 13px; pointer-events: none; }
.profile-card:hover { transform: translateY(-4px); border-color: rgba(64,136,120,.48); box-shadow: 0 24px 58px rgba(37,83,72,.16); }
.profile-card__number { color: rgba(164,123,54,.5); font: 10px/1 Georgia,serif; writing-mode: vertical-rl; }
.profile-card__avatar { position: relative; display: grid; width: 64px; height: 64px; color: #926f32; border: 1px solid rgba(172,128,54,.4); border-radius: 50%; place-items: center; font-family: "STKaiti","KaiTi",serif; font-size: 26px; }
.profile-card__avatar i { position: absolute; inset: -6px; border: 1px dashed rgba(45,112,99,.22); border-radius: 50%; animation: formation-spin 20s linear infinite; }
.profile-card__identity,.profile-card__where { display: grid; min-width: 0; gap: 4px; }
.profile-card__identity small,.profile-card__where small { color: #a27b3d; font-size: 8px; letter-spacing: .12em; }
.profile-card__identity b { overflow: hidden; font-family: "STKaiti","KaiTi",serif; font-size: 24px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.profile-card__identity em,.profile-card__where em { overflow-wrap: anywhere; color: #80918c; font-size: 9px; font-style: normal; }
.profile-card__where { padding-left: 16px; border-left: 1px solid rgba(51,104,93,.12); }
.profile-card__where b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-card__enter { display: grid; justify-items: center; gap: 5px; color: #8d6b31; font-family: "STKaiti","KaiTi",serif; font-size: 13px; }
.profile-card__enter i { font-style: normal; transition: transform .25s; }
.profile-card:hover .profile-card__enter i { transform: translateX(4px); }
.profile-card--new { display: grid; min-height: 142px; grid-template-columns: auto; place-content: center; justify-items: center; gap: 5px; color: #52786f; border-style: dashed; background: rgba(244,250,246,.6); text-align: center; }
.profile-card--new > span { font-size: 28px; font-weight: 200; }
.profile-card--new b { font-family: "STKaiti","KaiTi",serif; font-size: 18px; font-weight: 400; letter-spacing: .13em; }
.profile-card--new small { color: #8ba099; font-size: 9px; }
.profile-empty { min-height: 142px; padding: 22px; color: #5e7b73; background: rgba(255,255,255,.45); border: 1px dashed rgba(51,108,96,.2); border-radius: 3px 18px 3px 18px; text-align: center; }
.profile-empty i { display: inline-grid; width: 36px; height: 36px; border: 1px solid rgba(169,126,55,.3); border-radius: 50%; place-items: center; color: #9b7434; font-style: normal; }
.profile-empty h2 { margin: 8px 0 3px; font-family: "STKaiti","KaiTi",serif; font-weight: 400; }
.profile-empty p { margin: 0; font-size: 10px; }
.profiles-footer { position: absolute; right: 40px; bottom: 22px; left: 40px; display: flex; align-items: center; gap: 12px; color: #82978f; font-size: 9px; }
.profiles-footer i { width: 100px; height: 1px; background: linear-gradient(90deg,rgba(182,141,70,.38),transparent); }
.profiles-footer em { font-style: normal; }

/* ---------- Luminous destiny book ---------- */
.creation-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: #21463e;
  background: linear-gradient(180deg,rgba(242,249,245,.9),rgba(236,244,238,.98));
  isolation: isolate;
}

.creation-sky {
  position: fixed;
  z-index: -4;
  inset: 0;
  background:
    linear-gradient(180deg,rgba(249,252,247,.65),rgba(237,246,241,.93)),
    url("./assets/images/style-baseline.png") center 28% / cover no-repeat;
  filter: saturate(.72) brightness(1.28);
}

.creation-cloud {
  position: fixed;
  z-index: -2;
  right: -20%;
  left: -20%;
  height: 34vh;
  opacity: .62;
  background: radial-gradient(ellipse at 18% 54%,#fff 0 10%,transparent 34%),radial-gradient(ellipse at 51% 60%,rgba(255,255,255,.95) 0 12%,transparent 36%),radial-gradient(ellipse at 84% 48%,rgba(255,255,255,.9) 0 11%,transparent 34%);
  filter: blur(22px);
  pointer-events: none;
}
.creation-cloud--one { top: 60px; animation: cloud-far 32s linear infinite alternate; }
.creation-cloud--two { bottom: -10vh; opacity: .8; animation: cloud-near 25s linear infinite alternate; }

.creation-orbit { position: fixed; z-index: -1; top: 18vh; right: 4vw; width: min(38vw,600px); aspect-ratio: 1; opacity: .16; border: 1px solid #347b6d; border-radius: 50%; animation: formation-spin 70s linear infinite; }
.creation-orbit::before,.creation-orbit::after { content: ""; position: absolute; inset: 12%; border: 1px dashed #b68c42; border-radius: 50%; }
.creation-orbit::after { inset: 29%; border-style: solid; border-radius: 5px; transform: rotate(45deg); }
.creation-orbit i { position: absolute; inset: 22%; border: 1px solid rgba(51,120,106,.6); border-radius: 50%; animation: formation-spin 32s linear infinite reverse; }
.creation-orbit span { position: absolute; inset: 42%; display: grid; place-items: center; color: #8f6b2f; font-family: "STKaiti","KaiTi",serif; font-size: 30px; }

.creation-header {
  grid-template-columns: 48px minmax(0,1fr) auto auto;
  color: #20473f;
  background: rgba(248,252,248,.86);
  border-bottom: 1px solid rgba(44,108,94,.17);
  box-shadow: 0 12px 40px rgba(42,91,79,.08);
  backdrop-filter: blur(22px);
}
.creation-header .icon-button { color: #2a6055; background: rgba(255,255,255,.56); border-color: rgba(55,111,99,.2); }
.creation-header h1 { color: #1b443b; font-size: 29px; }
.creation-header .eyebrow { color: #9d7535; }
.creation-account { display: flex; min-width: 136px; padding-right: 24px; align-items: center; gap: 9px; border-right: 1px solid rgba(48,105,93,.14); }
.creation-account > i { display: grid; width: 34px; height: 34px; color: #856329; border: 1px solid rgba(178,134,57,.36); border-radius: 50%; place-items: center; font-family: "STKaiti","KaiTi",serif; font-style: normal; }
.creation-account > span { display: grid; gap: 2px; }
.creation-account small { color: #849991; font-size: 7px; letter-spacing: .12em; }
.creation-account b { color: #28564c; font-size: 11px; font-weight: 600; }
.creation-header .stepper span { position: relative; overflow: hidden; background: rgba(43,102,90,.14); }
.creation-header .stepper span.is-active { background: rgba(205,166,88,.28); }
.creation-header .stepper span.is-active::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#b68c42,#f1d692); animation: step-light 2.4s ease-in-out infinite; }

.creation-panel { position: relative; z-index: 1; width: min(1180px,calc(100% - 40px)); margin-top: 28px; }
.creation-server-error { position: relative; z-index: 2; width: min(1180px,calc(100% - 40px)); margin: 18px auto 0; }
.creation-intro { display: flex; min-height: 84px; margin-bottom: 18px; padding: 14px 22px; align-items: center; gap: 16px; color: #224b42; background: linear-gradient(90deg,rgba(255,255,250,.88),rgba(237,247,241,.62)); border: 1px solid rgba(48,111,97,.15); border-radius: 3px 18px 3px 18px; box-shadow: 0 14px 38px rgba(45,93,81,.08); backdrop-filter: blur(14px); }
.creation-intro > span { display: grid; width: 44px; height: 44px; color: #fff8e5; background: linear-gradient(145deg,#2d7568,#6aa99b); border-radius: 50%; box-shadow: 0 0 0 6px rgba(79,145,130,.08),0 8px 20px rgba(44,107,94,.18); place-items: center; font-family: "STKaiti","KaiTi",serif; font-size: 18px; }
.creation-intro > div { min-width: 0; }
.creation-intro small { color: #aa8040; font: 7px/1 Georgia,serif; letter-spacing: .25em; }
.creation-intro h2 { margin: 5px 0 0; font-family: "STKaiti","KaiTi",serif; font-size: 22px; font-weight: 400; letter-spacing: .13em; }
.creation-intro > i { width: min(28vw,260px); height: 1px; margin-left: auto; background: linear-gradient(90deg,rgba(183,140,63,.5),transparent); }

.creation-shell .form-section { position: relative; overflow: hidden; margin-bottom: 20px; padding: 28px 30px; background: linear-gradient(135deg,rgba(255,254,248,.92),rgba(241,248,242,.86)); border: 1px solid rgba(48,108,95,.16); border-radius: 3px 22px 3px 22px; box-shadow: 0 18px 52px rgba(42,88,77,.09),inset 0 0 0 5px rgba(255,255,255,.3); backdrop-filter: blur(16px); animation: destiny-section-enter .55s ease-out both; }
.creation-shell .form-section::before { content: ""; position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-top: 1px solid rgba(183,139,61,.42); border-left: 1px solid rgba(183,139,61,.42); }
.creation-shell .form-section::after { content: ""; position: absolute; top: 0; left: 16%; width: 32%; height: 1px; background: linear-gradient(90deg,transparent,#d9b86d,transparent); animation: section-glint 4s ease-in-out infinite; }
.creation-shell .field label { color: #315b52; }
.creation-shell .field input { color: #1c4139; background: rgba(255,255,255,.72); border-color: rgba(45,104,92,.2); border-radius: 2px 9px 2px 9px; }
.creation-shell .field input:focus { border-color: #5b9f90; box-shadow: 0 0 0 3px rgba(82,156,140,.11); }
.creation-shell .section-heading > span { color: #fff9e6; background: linear-gradient(145deg,#28685c,#5c9b8c); box-shadow: 0 0 0 5px rgba(72,139,124,.08); }
.creation-shell .section-heading h2 { color: #1c463d; font-size: 26px; }
.creation-shell .section-heading p { color: #718981; }
.creation-shell .choice-card { min-width: 0; overflow: hidden; background: rgba(255,255,253,.56); border-color: rgba(47,103,91,.16); border-radius: 2px 13px 2px 13px; box-shadow: 0 8px 22px rgba(49,89,79,.04); transition: transform .25s,border-color .25s,background .25s,box-shadow .25s; }
.creation-shell .choice-card:hover { transform: translateY(-4px); background: rgba(255,255,251,.9); border-color: rgba(76,145,130,.45); box-shadow: 0 16px 34px rgba(46,100,88,.11); }
.creation-shell .choice-card.is-selected { background: linear-gradient(145deg,rgba(235,250,243,.96),rgba(255,249,228,.86)); border-color: #4e9686; box-shadow: inset 3px 0 #d0a34c,0 16px 38px rgba(49,109,96,.12),0 0 0 3px rgba(86,153,138,.07); }
.creation-shell .choice-card.is-selected::after { content: "灵契已定"; position: absolute; right: -22px; bottom: 8px; width: 86px; padding: 3px 0; color: rgba(255,255,244,.86); background: rgba(66,137,122,.82); font-size: 7px; letter-spacing: .12em; text-align: center; transform: rotate(-36deg); }
.creation-shell .choice-card__title { color: #214b42; font-size: 19px; }
.creation-shell .choice-card__desc { overflow-wrap: anywhere; color: #687f78; line-height: 1.68; }
.creation-shell .choice-card__effect { overflow-wrap: anywhere; color: #8c682f; }
.creation-shell .stat-row { background: rgba(255,255,255,.5); border-color: rgba(47,103,91,.14); }
.creation-shell .stat-row strong { color: #2f7468; }
.creation-shell .form-footer { color: #6e837c; background: rgba(247,251,247,.88); border-color: rgba(47,103,91,.15); backdrop-filter: blur(14px); }
.creation-shell .button--primary { background: linear-gradient(115deg,#2e7366,#61a091); border-color: #79b2a5; box-shadow: 0 12px 28px rgba(42,105,92,.2); }

/* ---------- Brighter xianxia game palette ---------- */
.game-shell { background: #dceae4; }
.topbar { color: #224b42; background: linear-gradient(90deg,rgba(249,251,245,.97),rgba(231,242,235,.94) 48%,rgba(249,251,245,.97)); border-bottom-color: rgba(77,124,110,.22); box-shadow: 0 9px 30px rgba(29,71,61,.13); }
.topbar::after { opacity: .72; background: linear-gradient(90deg,transparent 4%,#d1a752 26%,transparent 48%,#8bb8a9 74%,transparent 96%); }
.topbar .brand b { color: #21483f; }
.topbar .brand small { color: rgba(34,81,71,.44); }
.topbar .brand > i { color: #235448; background: linear-gradient(145deg,#f4e0a4,#d7b35f); }
.time small { color: #9c7435; }
.time b { color: #385e55; }
.time > span { background: linear-gradient(90deg,transparent,rgba(69,121,108,.3)); }
.top-actions { gap: 4px; }
.top-actions button { color: #385f56; }
.top-actions button i { color: #9a7436; }
.top-actions button span { color: #607a73; }
.top-actions .account-switch { min-width: 50px; }
.top-actions .sound-button { border-color: rgba(52,107,95,.18); background: rgba(255,255,255,.45); }
.sound-button i { background: #9b7838; }

.world-stage[data-location="village"] .world-stage__art { background-image: url("./assets/images/location-village-bright.png"),url("./assets/images/location-village.png"); }
.world-stage__art { filter: saturate(1.08) brightness(1.09) contrast(.96); }
.world-stage__shade { background: linear-gradient(180deg,rgba(248,251,245,.03),rgba(234,244,238,.02) 34%,rgba(21,59,50,.09) 66%,rgba(11,42,34,.24) 100%),linear-gradient(90deg,rgba(240,248,242,.18),transparent 30% 72%,rgba(241,248,243,.12)); }
.world-stage__light { opacity: .7; background: radial-gradient(circle at 60% 24%,rgba(255,240,191,.38),transparent 23%),linear-gradient(118deg,transparent 40%,rgba(255,246,211,.17) 48%,transparent 57%); mix-blend-mode: screen; }
.world-stage__mist { opacity: .28; filter: blur(20px); }
.world-stage__location { color: #214940; text-shadow: 0 1px 0 rgba(255,255,255,.88),0 0 18px rgba(255,255,255,.78); }
.world-stage__location > span { color: rgba(31,78,68,.7); }
.world-stage__location > b { color: #183f36; }
.world-stage__location::before { background: linear-gradient(#c79e4e,rgba(57,127,111,.45)); box-shadow: 0 0 14px rgba(255,233,172,.7); }

.status-card,.action-dock { color: #21483f; background: linear-gradient(145deg,rgba(255,255,249,.88),rgba(226,241,233,.82)); border-color: rgba(63,118,105,.23); box-shadow: 0 24px 64px rgba(20,59,50,.19),inset 0 0 0 4px rgba(255,255,255,.2); backdrop-filter: blur(19px) saturate(1.18); }
.status-card::before,.action-dock::before { background: linear-gradient(90deg,rgba(194,150,68,.68),transparent); }
.status-card__head p,.status-card__head h2,.action-dock__head h2,.action-dock__head h3 { color: #20483f; }
.status-card__head > div { min-width: 0; }
.status-card__head p,.status-card__head h2 { overflow-wrap: anywhere; word-break: break-word; }
.status-card__divider span,.action-dock__head span { color: rgba(52,102,91,.4); }
.avatar-sigil { color: #98712f; background: rgba(255,251,232,.75); border-color: rgba(178,135,58,.42); }
.avatar-sigil i { border-color: rgba(55,127,111,.34); }
.status-card .icon-button { color: #916c2e; background: rgba(255,255,255,.55); border-color: rgba(55,111,99,.2); }
.realm-line small,.resource span,.currency-row small { color: #70867f; }
.realm-line span,.realm-line b,.resource b,.currency-row b { color: #214c42; }
.realm-line { background: rgba(255,255,255,.38); border-color: rgba(55,111,99,.13); }
.meter { background: rgba(40,93,81,.12); box-shadow: inset 0 1px 2px rgba(31,75,65,.1); }
.currency-row { border-color: rgba(56,111,99,.14); }
.currency-row > span + span { border-left-color: rgba(56,111,99,.13); }
.location-chip { color: #28544a; background: rgba(255,255,255,.42); border-color: rgba(55,113,100,.18); }
.location-chip:hover { background: rgba(255,255,255,.7); border-color: rgba(181,140,65,.44); }
.location-chip__mark { color: #8c692d; border-color: rgba(177,134,58,.32); }
.location-chip span,.location-chip small { color: #70877f; }
.location-chip b { color: #28544a; }

.action-dock__head { border-bottom-color: rgba(55,111,99,.14); }
.action-dock > p > span { color: #244d44; }
.action-dock > p > small { color: #7c918a; }
.action-dock button { color: #244d44; background: rgba(255,255,255,.28); border-bottom-color: rgba(55,111,99,.11); }
.action-dock button b { color: #244d44; }
.action-dock button small { color: #748b84; }
.action-dock button:hover { background: rgba(255,255,255,.65); transform: translateX(-3px); }
.action-dock button > i { color: #8c692d; background: rgba(255,251,230,.72); border-color: rgba(178,136,61,.34); }
.action-dock small,.action-dock em { color: #81948e; }

.scene-card,.combat-card { color: #21473e; background: linear-gradient(145deg,rgba(255,255,250,.92),rgba(226,241,233,.88)); border-color: rgba(60,119,105,.26); box-shadow: 0 24px 70px rgba(22,60,51,.22),inset 0 0 0 5px rgba(255,255,255,.2); backdrop-filter: blur(20px) saturate(1.15); }
.scene-card::after { border-color: rgba(178,136,59,.28); }
.scene-card__eyebrow { color: #9d7535; }
.scene-card h1,.combat-card h2 { color: #183f37; }
.scene-card__seal { color: #fff7df; background: linear-gradient(145deg,#c79642,#8f6a2d); border-color: #dfbb72; }
.scene-card__rule { background: linear-gradient(90deg,rgba(52,112,99,.42),rgba(190,147,68,.42),transparent); }
.scene-card__text,.combat-message { color: #48675f; overflow-wrap: anywhere; word-break: break-word; }
.story-choice { min-width: 0; color: #285047; background: rgba(255,255,255,.4); border-color: rgba(53,111,98,.17); }
.story-choice:hover { background: rgba(255,255,255,.78); border-color: rgba(181,140,64,.46); box-shadow: 0 9px 22px rgba(47,95,83,.1); }
.story-choice > i { color: #916b2e; background: #f4dc9c; box-shadow: 0 0 16px rgba(217,174,84,.18); }
.story-choice > span { min-width: 0; }
.story-choice b,.story-choice small { overflow-wrap: anywhere; }
.story-choice b { color: #254f45; }
.story-choice small { color: #82958f; }
.story-choice > em { color: #9b7738; }

.free-action { color: #294f46; }
.free-action label { color: rgba(39,80,71,.62); text-shadow: 0 1px rgba(255,255,255,.8); }
.free-action label span { color: #8e692d; }
.free-action > div { background: rgba(249,252,247,.9); border-color: rgba(57,112,100,.2); box-shadow: 0 14px 42px rgba(23,62,53,.17); backdrop-filter: blur(18px); }
.free-action > div > i { color: #8c682d; border-right-color: rgba(55,111,99,.16); }
.free-action input { color: #21483f; background: transparent; }
.free-action input::placeholder { color: rgba(53,91,82,.4); }
.free-action button { color: #fff9e9; background: linear-gradient(110deg,#a67c34,#d0a653); border-color: #d8b56f; }

.panel-backdrop { background: rgba(19,55,47,.52); }
.side-panel { width: min(620px,96vw); }
.side-panel > header { color: #234d43; background: linear-gradient(115deg,#e8f3ed,#f9f7e9); border-bottom-color: rgba(181,140,64,.4); }
.side-panel > header p { color: #9a7435; }
.side-panel > header h2 { color: #20483f; overflow-wrap: anywhere; }
.side-panel > header .icon-button { color: #315e54; background: rgba(255,255,255,.52); border-color: rgba(51,104,93,.2); }
.side-panel__body { min-width: 0; color: #264b43; }
.side-panel__body * { min-width: 0; max-width: 100%; }
.detail-hero > div,.detail-list div,.people-list article > div:last-child { min-width: 0; }
.detail-hero h3,.detail-hero p,.detail-list span,.people-list span,.log-list p,.save-note { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.detail-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.detail-grid > div { min-width: 0; }
.detail-list div { grid-template-columns: minmax(76px,auto) minmax(0,1fr); }

/* ---------- Balanced xianxia palette ---------- */
:root {
  --xianxia-ink: #1c3f37;
  --xianxia-ink-soft: #526d64;
  --xianxia-pine: #28594f;
  --xianxia-jade: #5f8f80;
  --xianxia-mist: #c7d4c8;
  --xianxia-silk: #e5e2cc;
  --xianxia-silk-deep: #d2d8c9;
  --xianxia-gold: #a77e38;
  --xianxia-gold-soft: #cfb06a;
  --xianxia-shadow: rgba(24, 57, 49, .22);
}

.backend-boot {
  color: var(--xianxia-ink);
  background: radial-gradient(circle at 50% 34%, #e9e4cb, #cbd9cc 48%, #9eb8aa);
}

.account-shell,
.profiles-shell {
  color: var(--xianxia-ink);
  background: #b9cbbf;
}

.account-shell__scene,
.profiles-shell__scene {
  background:
    linear-gradient(90deg, rgba(204, 216, 203, .22), rgba(188, 207, 197, .42)),
    url("./assets/images/style-baseline.png") center / cover no-repeat;
  filter: saturate(.74) brightness(.82) contrast(.94);
  animation: balanced-scene-breathe 16s ease-in-out infinite alternate;
}

.account-shell::before,
.profiles-shell::before {
  background:
    radial-gradient(circle at 76% 18%, rgba(226, 199, 132, .24), transparent 27%),
    linear-gradient(90deg, rgba(220, 226, 210, .92) 0 34%, rgba(193, 210, 198, .67) 57%, rgba(129, 157, 146, .24) 100%),
    linear-gradient(180deg, rgba(239, 232, 203, .08), rgba(30, 68, 58, .18));
}

.account-shell::after,
.profiles-shell::after,
.creation-shell::after {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: .32;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(36, 75, 65, .025) 4px),
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(36, 70, 61, .12));
  pointer-events: none;
}

.account-shell__cloud,
.profiles-shell__mist {
  opacity: .22;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(233, 235, 218, .66), transparent 34%),
    radial-gradient(ellipse at 58% 62%, rgba(224, 230, 216, .54), transparent 36%),
    radial-gradient(ellipse at 84% 44%, rgba(235, 229, 205, .52), transparent 32%);
  filter: blur(28px);
}

.account-shell__cloud--two { opacity: .12; }

.account-shell__runes {
  border-color: rgba(39, 91, 80, .24);
  box-shadow: 0 0 80px rgba(235, 218, 172, .12), inset 0 0 90px rgba(40, 83, 73, .07);
}
.account-shell__runes::before,
.account-shell__runes::after { border-color: rgba(157, 119, 51, .26); }
.account-shell__runes i { color: rgba(35, 82, 72, .34); }

.account-header,
.profiles-header {
  border-bottom-color: rgba(39, 85, 75, .25);
  background: rgba(216, 224, 210, .88);
  box-shadow: 0 8px 30px rgba(36, 72, 63, .08);
  backdrop-filter: blur(18px) saturate(.92);
}
.account-brand b,
.profiles-header .brand b { color: var(--xianxia-ink); }
.account-brand small,
.profiles-header .brand small,
.account-header > p { color: rgba(37, 77, 68, .58); }

.account-card {
  background: linear-gradient(145deg, rgba(235, 232, 210, .94), rgba(207, 220, 208, .92));
  border-color: rgba(42, 92, 80, .34);
  box-shadow: 0 30px 76px rgba(26, 61, 52, .26), inset 0 0 0 1px rgba(255, 248, 220, .62);
  backdrop-filter: blur(17px) saturate(.86);
}
.account-card::before,
.account-card::after { border-color: rgba(155, 113, 43, .58); }
.account-card__seal { color: #7d5725; border-color: rgba(151, 105, 38, .56); background: rgba(234, 221, 185, .34); }
.account-card__seal i { border-color: rgba(42, 96, 83, .34); }
.account-card__heading p { color: #8d662c; }
.account-card__heading h1 { color: #193c34; }
.account-card__heading > span { color: #526b63; }
.account-tabs { border-bottom-color: rgba(38, 84, 73, .24); }
.account-tabs button { color: #697e76; }
.account-tabs button.is-active { color: #183e35; }
.account-tabs button::after { background: #a67b34; }
.account-form label > span { color: #385e54; }
.account-form input {
  color: #193b34;
  background: rgba(241, 237, 216, .78);
  border-color: rgba(39, 86, 75, .29);
  box-shadow: inset 0 1px 4px rgba(37, 70, 61, .05);
}
.account-form input::placeholder { color: #74827d; opacity: 1; }
.account-form input:focus { border-color: #4e8174; box-shadow: 0 0 0 3px rgba(69, 124, 111, .13), inset 0 1px 4px rgba(37, 70, 61, .05); }
.account-submit {
  color: #f3edd5;
  background: linear-gradient(110deg, #214f46, #3e7165);
  border-color: #9b854d;
  box-shadow: 0 12px 26px rgba(27, 70, 60, .23), inset 0 1px rgba(255, 244, 204, .12);
}
.account-submit:hover { background: linear-gradient(110deg, #183f38, #356a5e); box-shadow: 0 15px 32px rgba(24, 65, 55, .3); }
.account-local-note { color: #5e736c; }
.account-local-note i { color: #795825; border-color: rgba(137, 98, 35, .42); background: rgba(237, 224, 188, .36); }
.account-shell__quote { color: rgba(25, 66, 57, .48); }

.profiles-header > div small,
.profiles-header > div span,
.profiles-heading > span,
.profiles-footer { color: #5f756e; }
.profiles-shell::before {
  background:
    radial-gradient(circle at 76% 18%, rgba(218, 190, 120, .19), transparent 27%),
    linear-gradient(90deg, rgba(205, 215, 201, .84) 0 32%, rgba(174, 196, 183, .58) 58%, rgba(103, 137, 125, .2) 100%),
    linear-gradient(180deg, rgba(233, 224, 191, .06), rgba(25, 62, 52, .21));
}
.profiles-header > div b,
.profiles-heading h1 { color: #193d35; }
.profiles-heading p { color: #8b662f; }
.profile-logout { color: #365d54; background: rgba(229, 228, 209, .58); border-color: rgba(43, 89, 78, .29); }
.profile-logout:hover { background: rgba(237, 233, 211, .84); border-color: rgba(146, 108, 45, .5); }
.profile-card {
  color: #22473f;
  background: linear-gradient(115deg, rgba(222, 223, 204, .94), rgba(190, 209, 196, .92));
  border-color: rgba(40, 91, 78, .31);
  box-shadow: 0 16px 42px rgba(29, 69, 59, .17), inset 0 1px rgba(255, 248, 220, .45);
}
.profile-card::before { border-color: rgba(153, 111, 42, .24); }
.profile-card:hover { border-color: rgba(46, 112, 96, .62); box-shadow: 0 24px 54px rgba(27, 67, 57, .24); }
.profile-card__identity em,
.profile-card__where em,
.profile-card--new small { color: #667a73; }
.profile-card__identity small,
.profile-card__where small,
.profile-card__enter { color: #84612d; }
.profile-card--new,
.profile-empty { color: #345e54; background: rgba(193, 211, 198, .78); border-color: rgba(39, 87, 75, .39); }

.creation-shell {
  color: var(--xianxia-ink);
  background: #c7d4c9;
}
.creation-sky {
  background:
    linear-gradient(180deg, rgba(211, 221, 208, .82), rgba(203, 215, 204, .88)),
    url("./assets/images/style-baseline.png") center 28% / cover no-repeat;
  filter: saturate(.7) brightness(.88) contrast(.94);
}
.creation-cloud { opacity: .24; background: radial-gradient(ellipse at 18% 54%,rgba(235,236,220,.65) 0 10%,transparent 34%),radial-gradient(ellipse at 51% 60%,rgba(227,232,217,.58) 0 12%,transparent 36%),radial-gradient(ellipse at 84% 48%,rgba(238,230,204,.5) 0 11%,transparent 34%); }
.creation-cloud--two { opacity: .3; }
.creation-orbit { opacity: .24; border-color: #3f776a; }
.creation-orbit::before,
.creation-orbit::after { border-color: #9c7739; }
.creation-header {
  color: var(--xianxia-ink);
  background: rgba(211, 221, 208, .91);
  border-bottom-color: rgba(44, 89, 78, .28);
  box-shadow: 0 10px 34px rgba(29, 67, 58, .12);
  backdrop-filter: blur(18px) saturate(.9);
}
.creation-header h1 { color: #193d35; }
.creation-header .eyebrow { color: #815e29; }
.creation-header .icon-button { color: #28544a; background: rgba(231, 229, 208, .62); border-color: rgba(48, 93, 82, .3); }
.creation-intro {
  color: #20473e;
  background: linear-gradient(90deg, rgba(233, 230, 208, .91), rgba(203, 219, 207, .82));
  border-color: rgba(43, 93, 80, .28);
  box-shadow: 0 14px 36px rgba(31, 72, 62, .14);
}
.creation-intro > span { background: linear-gradient(145deg, #285b50, #568879); box-shadow: 0 0 0 6px rgba(49, 104, 91, .1), 0 8px 20px rgba(34, 82, 70, .2); }
.creation-intro small { color: #89642d; }
.creation-shell .form-section {
  background: linear-gradient(135deg, rgba(224, 223, 204, .95), rgba(194, 211, 198, .93));
  border-color: rgba(42, 91, 79, .3);
  box-shadow: 0 18px 48px rgba(28, 66, 57, .16), inset 0 0 0 1px rgba(255, 248, 220, .5);
  backdrop-filter: blur(14px) saturate(.88);
}
.creation-shell .field input,
.creation-shell .choice-card,
.creation-shell .stat-row,
.creation-shell .stat-editor {
  background: rgba(228, 226, 207, .76);
  border-color: rgba(43, 90, 79, .27);
}
.creation-shell .field input::placeholder { color: #71817b; opacity: 1; }
.creation-shell .choice-card:hover { background: rgba(240, 235, 212, .92); border-color: rgba(51, 111, 96, .58); }
.creation-shell .choice-card.is-selected { background: linear-gradient(145deg, rgba(210, 225, 211, .97), rgba(234, 226, 198, .91)); border-color: #477f71; box-shadow: inset 3px 0 #a77c37, 0 15px 34px rgba(37, 87, 75, .17), 0 0 0 2px rgba(72, 125, 112, .08); }
.creation-shell .choice-card__title { color: #1c443b; }
.creation-shell .choice-card__desc { color: #596f67; }
.creation-shell .form-footer { color: #5c716a; background: rgba(211, 222, 210, .9); border-color: rgba(42, 89, 78, .28); }
.creation-shell .button--primary { color: #f1ead1; background: linear-gradient(115deg, #245248, #4d7d70); border-color: #9a8348; box-shadow: 0 12px 27px rgba(31, 77, 66, .24); }

.game-shell { background: #aebfb2; }
.topbar {
  color: var(--xianxia-ink);
  background: linear-gradient(90deg, rgba(207, 214, 198, .98), rgba(181, 201, 188, .97) 50%, rgba(207, 214, 198, .98));
  border-bottom-color: rgba(38, 83, 72, .3);
  box-shadow: 0 9px 28px rgba(22, 56, 48, .18);
}
.topbar::after { opacity: .52; background: linear-gradient(90deg, transparent 4%, #a97f39 28%, transparent 49%, #57897b 73%, transparent 96%); }
.topbar .brand b { color: #183e35; }
.topbar .brand small { color: rgba(31, 72, 63, .55); }
.topbar .brand > i { color: #234d44; background: linear-gradient(145deg, #dfca8e, #b99148); }
.time small { color: #7f5b28; }
.time b,
.top-actions button { color: #355d53; }
.top-actions button span { color: #536f66; }
.top-actions .sound-button { background: rgba(230, 227, 207, .58); border-color: rgba(42, 89, 78, .28); }

.world-stage { background: #8ea497; }
.world-stage[data-location="village"] .world-stage__art { background-image: url("./assets/images/location-village.png"); }
.world-stage__art { filter: saturate(.84) brightness(.93) contrast(.98); }
.world-stage__shade {
  background:
    linear-gradient(180deg, rgba(225, 219, 188, .05), rgba(55, 91, 78, .06) 42%, rgba(18, 53, 44, .28) 74%, rgba(9, 34, 28, .58) 100%),
    linear-gradient(90deg, rgba(25, 57, 48, .2), transparent 28% 72%, rgba(21, 51, 43, .14));
}
.world-stage[data-location="valley"] .world-stage__shade,
.world-stage[data-location="cavern"] .world-stage__shade {
  background:
    linear-gradient(90deg, rgba(7, 27, 31, .42), transparent 32% 68%, rgba(7, 25, 29, .36)),
    linear-gradient(180deg, rgba(10, 32, 35, .08), rgba(9, 34, 36, .2) 64%, rgba(5, 24, 25, .64));
}
.world-stage__light { opacity: .36; mix-blend-mode: soft-light; }
.world-stage__mist { opacity: .21; }
.world-stage__location { color: #eee4c3; text-shadow: 0 2px 12px rgba(6, 28, 22, .84); }
.world-stage__location > span { color: rgba(241, 232, 201, .78); }
.world-stage__location > b { color: #f3ead0; }
.world-stage__location::before { background: linear-gradient(#c9a85b, rgba(185, 206, 188, .56)); box-shadow: 0 0 12px rgba(232, 207, 143, .42); }

.status-card,
.action-dock {
  color: var(--xianxia-ink);
  background: linear-gradient(145deg, rgba(207, 216, 199, .93), rgba(174, 198, 184, .91));
  border-color: rgba(39, 86, 74, .36);
  box-shadow: 0 24px 58px rgba(14, 47, 39, .28), inset 0 0 0 1px rgba(244, 237, 210, .42);
  backdrop-filter: blur(17px) saturate(.9);
}
.status-card__head p,
.status-card__head h2,
.action-dock__head h2,
.action-dock__head h3,
.realm-line span,
.realm-line b,
.resource b,
.currency-row b { color: #1b433a; }
.status-card__divider span,
.action-dock__head span { color: rgba(43, 82, 73, .55); }
.avatar-sigil { color: #795825; background: rgba(230, 220, 185, .66); border-color: rgba(139, 100, 36, .55); }
.status-card .icon-button { color: #735422; background: rgba(233, 228, 206, .62); border-color: rgba(43, 88, 77, .28); }
.realm-line { background: rgba(229, 228, 209, .43); border-color: rgba(40, 84, 73, .21); }
.realm-line small,
.resource span,
.currency-row small { color: #566e66; }
.location-chip { color: #244d43; background: rgba(225, 226, 209, .5); border-color: rgba(39, 87, 75, .28); }
.location-chip:hover { background: rgba(236, 231, 208, .72); border-color: rgba(145, 106, 43, .54); }
.location-chip b { color: #21493f; }
.location-chip span,
.location-chip small { color: #5d746c; }
.action-dock button { color: #21493f; background: rgba(225, 226, 208, .34); border-bottom-color: rgba(42, 87, 76, .2); }
.action-dock button b { color: #21493f; }
.action-dock button small,
.action-dock small,
.action-dock em { color: #5d736c; }
.action-dock button:hover { background: rgba(236, 232, 211, .66); }
.action-dock button > i { color: #745623; background: rgba(232, 221, 185, .65); border-color: rgba(143, 103, 39, .48); }

.scene-card,
.combat-card {
  color: #203f37;
  background: linear-gradient(145deg, rgba(216, 219, 201, .96), rgba(181, 204, 189, .94));
  border-color: rgba(39, 88, 75, .42);
  box-shadow: 0 24px 62px rgba(11, 42, 34, .32), inset 0 0 0 1px rgba(248, 239, 207, .48);
  backdrop-filter: blur(17px) saturate(.88);
}
.scene-card h1,
.combat-card h2 { color: #173c33; }
.scene-card__eyebrow { color: #805b28; }
.scene-card__text,
.combat-message { color: #405f56; }
.scene-card__seal { color: #f5edd2; background: linear-gradient(145deg, #9c7432, #6f5227); border-color: #c5a45b; }
.story-choice { color: #244b42; background: rgba(218, 218, 199, .58); border-color: rgba(42, 89, 77, .31); }
.story-choice:hover { background: rgba(240, 233, 208, .82); border-color: rgba(145, 107, 45, .58); box-shadow: 0 9px 22px rgba(30, 72, 62, .16); }
.story-choice b { color: #21483f; }
.story-choice small { color: #60766e; }
.story-choice > i { color: #735322; background: #d8c184; }

.free-action { color: #e8dfc2; }
.free-action label { color: rgba(237, 228, 196, .82); text-shadow: 0 2px 9px rgba(5, 27, 21, .84); }
.free-action label span { color: #e0bf73; }
.free-action > div { background: rgba(204, 214, 198, .95); border-color: rgba(38, 83, 72, .42); box-shadow: 0 14px 36px rgba(9, 40, 32, .28); }
.free-action > div > i { color: #755622; border-right-color: rgba(43, 86, 75, .24); }
.free-action input { color: #1b4239; }
.free-action input::placeholder { color: rgba(49, 75, 68, .58); }
.free-action button { color: #f1e9cf; background: linear-gradient(110deg, #775624, #a77d37); border-color: #c3a45f; }

.panel-backdrop { background: rgba(9, 34, 28, .56); }
.side-panel { color: #203f37; background: linear-gradient(180deg, #e4e1ca, #cbd7c9); border-left-color: rgba(151, 114, 52, .48); box-shadow: -30px 0 82px rgba(7, 30, 24, .42); }
.side-panel > header { color: #203f37; background: linear-gradient(115deg, #c7d8ca, #e4dfc7); border-bottom-color: rgba(151, 112, 48, .52); }
.side-panel > header p { color: #795624; }
.side-panel > header h2 { color: #193f36; }
.side-panel > header .icon-button { color: #2c564c; background: rgba(233, 228, 205, .58); border-color: rgba(42, 87, 76, .3); }
.detail-hero { color: #efe6c8; background: linear-gradient(135deg, #315f54, #1d463d); }
.detail-hero p { color: rgba(236, 226, 195, .7); }
.detail-grid > div,
.inventory-list article,
.people-list article,
.save-grid button,
.import-button { background: rgba(232, 228, 208, .54); border-color: rgba(42, 84, 73, .24); }
.panel-intro,
.save-note,
.people-list span,
.inventory-list p { color: #536a62; }
.mobile-tabs { color: #244b42; background: rgba(215, 222, 207, .96); border-top-color: rgba(42, 88, 76, .34); }
.mobile-tabs button { color: rgba(34, 75, 65, .72); }
.mobile-tabs button i { color: #765722; }

@keyframes balanced-scene-breathe {
  to { filter: saturate(.8) brightness(.87) contrast(.96); transform: scale(1.015); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .landing__content { margin-left: 10vw; }
  .profile-grid { grid-template-columns: 1fr; }
  .account-card { margin-left: 7vw; }
  .topbar { grid-template-columns: 230px 1fr 330px; }
}

@media (max-width: 760px) {
  .landing__frame,.landing__scroll-cue,.landing__talismans,.landing__title-index { display: none; }
  .landing__backdrop { background-position: 58% center; }
  .landing::before { background: linear-gradient(180deg,rgba(4,20,16,.06),rgba(4,20,16,.22) 38%,rgba(3,18,14,.9) 84%); }
  .landing__formation { top: 44%; left: 50%; width: 92vw; opacity: .17; }
  .formation__sigils i { display: none; }
  .landing__content { align-self: end; justify-self: center; width: calc(100% - 30px); margin: 0 0 10vh; text-align: center; }
  .landing .seal { min-width: 0; margin-bottom: 12px; }
  .landing .seal > em { display: none; }
  .landing h1 { justify-content: center; font-size: clamp(68px,23vw,104px); }
  .landing__subtitle { justify-content: center; margin: 14px 0 22px; font-size: 14px; letter-spacing: .1em; }
  .landing__subtitle i { width: 18px; }
  .landing__actions { justify-content: center; }
  .landing .feature-row { width: 100%; margin-top: 26px; }
  .landing .feature-row li { padding: 0 7px; justify-content: center; }
  .landing .feature-row li > i { display: none; }
  .landing .feature-row li > span { font-size: 8px; }
  .landing__version { right: 0; bottom: 12px; width: 100%; justify-content: center; font-size: 8px; }
  .landing__version i { display: none; }

  .account-header,.profiles-header { min-height: 66px; padding: 0 14px; }
  .account-header > p { display: none; }
  .account-card { width: calc(100% - 24px); margin: 20px auto 40px; padding: 28px 22px 24px; }
  .account-card__seal { top: 24px; right: 24px; width: 46px; height: 46px; }
  .account-card__heading { padding-right: 58px; }
  .account-card__heading h1 { font-size: 29px; }
  .account-form { grid-template-columns: 1fr; }
  .account-message,.account-submit { grid-column: 1; }
  .account-shell__quote,.account-shell__runes { display: none; }
  .profiles-header > div { display: none; }
  .profiles-content { width: calc(100% - 24px); margin-top: 28px; }
  .profiles-heading h1 { font-size: 36px; }
  .profile-grid { margin-top: 20px; }
  .profile-card { min-height: 180px; padding: 20px; grid-template-columns: 28px 58px 1fr auto; gap: 11px; }
  .profile-card__avatar { width: 52px; height: 52px; }
  .profile-card__where { grid-column: 2 / 4; padding: 10px 0 0; border-top: 1px solid rgba(51,104,93,.12); border-left: 0; }
  .profile-card__enter { grid-row: 1 / 3; grid-column: 4; }
  .profile-card--new { display: grid; grid-template-columns: auto; min-height: 130px; }
  .profiles-footer { position: static; margin: 0 20px 18px; }

  .creation-header { grid-template-columns: 42px 1fr auto; gap: 10px; padding: 12px 14px; }
  .creation-header h1 { font-size: 22px; }
  .creation-account { display: none; }
  .creation-panel { width: calc(100% - 20px); margin-top: 14px; }
  .creation-intro { min-height: 68px; padding: 10px 14px; }
  .creation-intro > span { width: 38px; height: 38px; }
  .creation-intro h2 { font-size: 17px; }
  .creation-intro > i { display: none; }
  .creation-shell .form-section { padding: 22px 16px; border-radius: 3px 16px 3px 16px; }
  .creation-shell .choice-grid { grid-template-columns: 1fr; }
  .creation-shell .choice-card { min-height: 118px; }

  .topbar { grid-template-columns: auto 1fr auto; }
  .top-actions .account-switch { display: none; }
  .world-stage__shade { background: linear-gradient(180deg,rgba(255,255,255,.02),rgba(23,60,52,.04) 40%,rgba(17,54,45,.32) 72%,rgba(9,38,31,.75)); }
  .scene-card,.combat-card { background: linear-gradient(145deg,rgba(255,255,250,.95),rgba(226,241,233,.93)); }
  .mobile-tabs { color: #274f46; background: rgba(247,251,246,.96); border-top-color: rgba(65,120,107,.22); }
  .mobile-tabs button { color: rgba(38,82,72,.62); }
  .mobile-tabs button i { color: #9a7334; }
  .side-panel { width: 100vw; }
}

@media (max-width: 420px) {
  .landing__actions { flex-direction: column; margin-inline: 32px; }
  .landing-cta,.landing-continue { width: 100%; min-width: 0; }
  .landing .feature-row { grid-template-columns: repeat(2,1fr); row-gap: 10px; }
  .landing .feature-row li:nth-child(3) { border-left: 0; }
  .account-card { padding-inline: 18px; }
  .profile-card { grid-template-columns: 50px minmax(0,1fr) auto; }
  .profile-card__number { display: none; }
  .profile-card__avatar { width: 46px; height: 46px; }
  .profile-card__where { grid-column: 1 / 3; }
  .profile-card__enter { grid-column: 3; }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .side-panel__body { padding: 18px 14px; }
}

/* ---------- Motion ---------- */
@keyframes landscape-breathe { to { filter: saturate(1.12) contrast(1.02) brightness(1.06); } }
@keyframes light-scene-breathe { to { transform: scale(1.025); filter: saturate(.86) brightness(1.32); } }
@keyframes sun-breath { to { opacity: .94; transform: scale(1.08) rotate(3deg); } }
@keyframes cloud-far { to { transform: translate3d(10%, -3%, 0) scale(1.04); } }
@keyframes cloud-near { to { transform: translate3d(-9%, 3%, 0) scale(1.08); } }
@keyframes veil-breathe { to { opacity: .62; transform: scale(1.035); } }
@keyframes formation-spin { to { transform: rotate(360deg); } }
@keyframes formation-core { to { opacity: .52; box-shadow: 0 0 38px rgba(242,216,153,.2); transform: scale(1.08); } }
@keyframes blade-flight { 0%,5% { opacity: 0; transform: translate3d(0,0,0) rotate(-18deg); } 8% { opacity: .86; } 23% { opacity: 0; transform: translate3d(148vw,-38vh,0) rotate(-18deg); } 100% { opacity: 0; } }
@keyframes talisman-float { to { margin-top: -22px; filter: drop-shadow(0 0 18px rgba(237,205,121,.5)); } }
@keyframes landing-particle { 0%,100% { opacity: 0; transform: translateY(18px) scale(.6); } 30% { opacity: .78; } 75% { opacity: .18; transform: translate(15px,-68px) scale(1.2); } }
@keyframes content-awaken { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } }
@keyframes seal-enter { from { opacity: 0; transform: translateX(-18px); } }
@keyframes seal-rune { 50% { border-color: white; box-shadow: 0 0 12px rgba(241,219,158,.7); transform: translateY(-50%) rotate(225deg); } }
@keyframes title-ink-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes title-spirit { 50% { opacity: .2; transform: translate(12px,1px); filter: blur(4px); } }
@keyframes title-gold-flow { to { background-position: 100% 0; } }
@keyframes subtitle-enter { from { opacity: 0; letter-spacing: .35em; } }
@keyframes actions-awaken { from { opacity: 0; transform: translateY(15px); } }
@keyframes features-awaken { from { opacity: 0; transform: translateY(12px); } }
@keyframes cta-glow { 50% { box-shadow: 0 18px 50px rgba(92,60,8,.38),0 0 30px rgba(232,193,103,.22); } }
@keyframes cta-shine { 0%,55% { left: -35%; } 82%,100% { left: 130%; } }
@keyframes cta-aura { from { opacity: .55; transform: scale(.8); } to { opacity: 0; transform: scale(1.12); } }
@keyframes cue-line { 0% { transform: translateY(-18px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(54px); opacity: 0; } }
@keyframes rift-open { 0% { height: 0; } 36% { height: 88vh; } 100% { width: 96vw; height: 120vh; } }
@keyframes rift-flash { 0%,50% { background: rgba(255,244,208,0); } 100% { background: rgba(255,250,231,1); } }
@keyframes account-card-enter { from { opacity: 0; transform: translateY(24px) scale(.985); } }
@keyframes step-light { 50% { opacity: .45; transform: translateX(10%); } }
@keyframes destiny-section-enter { from { opacity: 0; transform: translateY(18px); } }
@keyframes section-glint { 0%,60% { left: -35%; opacity: 0; } 80% { opacity: .8; } 100% { left: 100%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .landing__backdrop,.landing__sunbreath,.landing__clouds,.landing__veil,.landing__formation,.formation__orbit,.formation__sigils,.formation__core,.landing__blade-trails i,.landing__talismans i,.landing__particles i,.landing__content,.landing .seal,.landing h1,.landing h1::after,.landing h1 span,.landing__subtitle,.landing__actions,.landing .feature-row,.landing-cta,.landing-cta::after,.landing-cta__aura,.landing__scroll-cue i::after,.account-shell__scene,.profiles-shell__scene,.account-shell__cloud,.profiles-shell__mist,.account-shell__runes,.account-card__seal i,.profile-card__avatar i,.creation-cloud,.creation-orbit,.creation-orbit i,.creation-shell .form-section,.creation-header .stepper span::after {
    animation: none !important;
  }
  .landing h1 { clip-path: none; }
}
