@font-face {
  font-family: "SageRealm Luoxia";
  src: url("./assets/fonts/lxgw-wenkai-gb-sagerealm.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SageRealm Ma Shan";
  src: url("./assets/fonts/ma-shan-zheng-sagerealm.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SageRealm Editorial";
  src: url("./assets/fonts/sagerealm-editorial-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #44384a;
  --ink-soft: #584163;
  --paper: #f8f3e8;
  --paper-soft: #685f55;
  --paper-dim: #8a7d70;
  --gold: #b78f51;
  --gold-light: #c7a266;
  --vermillion: #aa4932;
  --jade: #584163;
  --silk: #f3eddf;
  --silk-deep: #e8deca;
  --line: rgba(75,54,86,.16);
  --display: "Noto Serif SC", "Songti SC", serif;
  --text: "SageRealm Luoxia", "LXGW WenKai GB", "LXGW WenKai", "KaiTi", serif;
  --serif: var(--text);
  --brush: "SageRealm Ma Shan", "Ma Shan Zheng", "Kaiti SC", serif;
  --sans: "Source Sans 3", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--silk); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--silk); font-family: var(--text); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .08; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E"); }
.site-shell { min-height: 100vh; overflow: hidden; }
.site-header { height: 78px; padding: 0 clamp(18px, 5vw, 78px); display: flex; align-items: center; justify-content: space-between; position: absolute; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid rgba(75,54,86,.12); background: linear-gradient(180deg, rgba(248,243,232,.86), rgba(248,243,232,.16)); }
.site-brand { display: flex; align-items: center; gap: 14px; }
.logo-mark { width: 46px; height: 46px; display: block; flex: none; object-fit: cover; border-radius: 50%; box-shadow: 0 5px 14px rgba(75,54,86,.12); }
.site-brand b { display: block; color: var(--ink); font-family: "SageRealm Editorial", "Playfair Display", Georgia, serif; font-size: 23px; font-weight: 720; line-height: .92; letter-spacing: -.038em; font-kerning: normal; font-variant-ligatures: common-ligatures discretionary-ligatures; }
.site-brand small { display: block; margin-top: 11px; color: var(--paper-dim); font: 9px/1 var(--sans); letter-spacing: .22em; white-space: nowrap; }
html[lang="en"] .site-brand small { font-size: 8px; letter-spacing: .17em; }
html[lang="zh-CN"] .site-brand small { color: #654d58; font-family: "SageRealm Luoxia"; font-size: 13px; font-weight: 400; line-height: 1.05; letter-spacing: .17em; font-synthesis: none; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.7vw, 36px); }
.site-header nav a, .nav-login { color: var(--ink-soft); font: 11px var(--sans); letter-spacing: .14em; transition: .2s ease; }
.site-header nav a:hover { color: var(--vermillion); }
.site-header nav .nav-vignis { color: var(--vermillion); font-weight: 600; }
.site-header nav .nav-vignis span { margin-left: 2px; font-size: .9em; }
.language-switch, .nav-login { min-width: 0; height: auto; padding: 8px 0 10px; position: relative; border: 0; background: transparent; color: var(--ink-soft); font: 10px var(--sans); letter-spacing: .14em; white-space: nowrap; transition: color .2s ease; }
.language-switch { cursor: pointer; }
.language-switch::after, .nav-login-locked::after { content: ""; position: absolute; right: 0; bottom: 4px; left: 0; height: 1px; background: rgba(183,143,81,.66); transform-origin: left; transition: transform .2s ease, background .2s ease; }
.language-switch:hover { color: var(--vermillion); }
.language-switch:hover::after { background: var(--vermillion); transform: scaleX(.65); }
.nav-login { cursor: pointer; }
.nav-login-locked { color: #82766a; cursor: not-allowed; }
.nav-login-locked::before { content: ""; width: 5px; height: 5px; margin: 0 7px 1px 0; display: inline-block; border: 1px solid rgba(183,143,81,.9); border-radius: 50%; vertical-align: middle; }
.nav-login-locked::after { background: rgba(75,54,86,.22); }
.login-view { min-height: 100vh; padding: 122px clamp(20px, 6vw, 96px) 80px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, 440px); align-items: center; gap: clamp(30px, 8vw, 120px); position: relative; isolation: isolate; overflow: hidden; }
.landscape { position: absolute; inset: 0; z-index: -3; background-image: linear-gradient(90deg, rgba(248,243,232,.94) 0%, rgba(243,237,223,.77) 43%, rgba(243,237,223,.18) 74%, rgba(243,237,223,.54) 100%), linear-gradient(0deg, rgba(248,243,232,.92), transparent 58%), url("./assets/sagerealm-home-hero.webp"); background-size: cover; background-position: center; transform: scale(1.03); animation: landscape-drift 20s ease-in-out infinite alternate; }
.login-view::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 72% 38%, rgba(183,143,81,.16), transparent 28%), radial-gradient(circle at 22% 73%, rgba(88,65,99,.10), transparent 36%); }
.login-view::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: -1; background: linear-gradient(transparent, rgba(248,243,232,.98)); }
.hero-inscription { position: absolute; left: 24px; top: 22%; display: grid; gap: 12px; color: rgba(75,54,86,.11); font: 48px/1 var(--brush); writing-mode: vertical-rl; letter-spacing: .15em; }
.login-copy { max-width: 720px; }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--gold-light); font: 10px var(--sans); letter-spacing: .28em; text-transform: uppercase; }
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.login-copy h1 { margin: 28px 0 24px; font-family: var(--display); font-size: clamp(44px, 5.8vw, 82px); line-height: 1.18; font-weight: 400; letter-spacing: .035em; }
.hero-typewriter { color: var(--ink-soft); }
html[lang="en"] .hero-typewriter, html[lang="en"] .about-sagerealm h2 { font-family: "SageRealm Editorial", "Playfair Display", Georgia, serif; }
html[lang="zh-CN"] .hero-typewriter, html[lang="zh-CN"] .about-sagerealm h2, html[lang="zh-CN"] .login-panel h2 { font-family: "SageRealm Ma Shan", "Ma Shan Zheng", serif; font-synthesis: none; }
html[lang="en"] .hero-typewriter { max-width: none; font-size: clamp(28px, 3.45vw, 52px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
html[lang="zh-CN"] .hero-typewriter { font-family: var(--brush); max-width: none; font-size: clamp(34px, 4.25vw, 64px); line-height: 1.2; letter-spacing: .06em; }
.typewriter-text { display: inline; white-space: pre-line; }
.hero-typewriter.is-typing .typewriter-text::after { content: ""; display: inline-block; width: .075em; height: .77em; margin-left: .13em; background: var(--gold-light); vertical-align: -.04em; animation: typewriter-caret .82s steps(1) infinite; }
@keyframes typewriter-caret { 50% { opacity: 0; } }
.login-copy > p { max-width: 720px; color: var(--paper-soft); font-size: clamp(14px, 1.4vw, 18px); line-height: 2; }
.launch-note { display: inline-flex; align-items: center; gap: 11px; margin-top: 24px; padding: 9px 12px; border: 1px solid rgba(88,65,99,.2); background: rgba(248,243,232,.48); color: var(--ink-soft); font: 10px var(--sans); letter-spacing: .12em; }
.launch-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--vermillion); box-shadow: 0 0 10px rgba(168,70,50,.36); }
.launch-note-dev { color: var(--ink-soft); border-color: rgba(183,143,81,.42); background: rgba(248,243,232,.5); }
.launch-note-dev i { background: var(--gold); box-shadow: 0 0 10px rgba(183,143,81,.48); }
.login-panel { width: min(100%, 330px); min-height: 154px; padding: 30px 34px; position: relative; display: flex; flex-direction: column; justify-content: center; justify-self: end; border: 1px solid rgba(75,54,86,.18); background: rgba(251,247,238,.84); backdrop-filter: blur(22px) saturate(.92); box-shadow: 0 28px 72px rgba(75,54,86,.14); }
.panel-corners::before, .panel-corners::after { content: ""; position: absolute; width: 42px; height: 42px; border-color: rgba(183,143,81,.76); }
.panel-corners::before { inset: 7px auto auto 7px; border-left: 1px solid; border-top: 1px solid; }
.panel-corners::after { inset: auto 7px 7px auto; border-right: 1px solid; border-bottom: 1px solid; }
.panel-eyebrow { color: var(--gold-light); font: 9px var(--sans); letter-spacing: .28em; }
.login-panel h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: .06em; }
html[lang="en"] .login-panel h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .19em; }
.login-panel > p { margin: 11px 0 0; color: var(--paper-dim); font: 10px var(--sans); letter-spacing: .17em; }
.about-sagerealm { padding: clamp(76px, 10vw, 150px) clamp(20px, 6vw, 96px); position: relative; overflow: hidden; border-top: 1px solid rgba(75,54,86,.13); background: radial-gradient(circle at 88% 10%, rgba(183,143,81,.16), transparent 31rem), linear-gradient(145deg, #f8f3e8, #eee3cf); }
.about-sagerealm::after { content: ""; position: absolute; right: clamp(18px, 7vw, 140px); bottom: -7px; width: min(46vw, 540px); height: min(46vw, 540px); border: 1px solid rgba(75,54,86,.1); border-radius: 50%; transform: rotate(-16deg); }
.about-sagerealm-inner { max-width: 820px; position: relative; z-index: 1; }
.about-sagerealm h2 { max-width: none; margin: 26px 0 22px; color: var(--ink); font-size: clamp(32px, 3.8vw, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; white-space: nowrap; }
html[lang="zh-CN"] .about-sagerealm h2 { font-size: clamp(36px, 4vw, 58px); font-weight: 400; line-height: 1.16; letter-spacing: .055em; }
.about-sagerealm p { max-width: 710px; margin: 0; color: var(--paper-soft); font-size: clamp(16px, 1.55vw, 21px); line-height: 1.85; }
.about-sagerealm .about-detail { max-width: 600px; margin-top: 24px; color: var(--ink-soft); font: 11px/1.9 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.about-film { width: min(46vw, 540px); aspect-ratio: 1; margin: 0; position: absolute; right: clamp(18px, 7vw, 140px); bottom: -7px; z-index: 0; overflow: hidden; border-radius: 50%; background: #e6dcc9; }
.about-film img, .about-film video { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; object-position: 72% center; filter: saturate(.86) contrast(.96); }
.about-film img { z-index: 0; }
.about-film video { z-index: 1; }
.development-stamp { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; margin: -8px 0 24px; padding: 13px 14px; border: 1px solid rgba(183,143,81,.35); background: rgba(183,143,81,.08); }
.development-stamp b { color: var(--gold-light); font-size: 13px; font-weight: 500; letter-spacing: .18em; }
.development-stamp span { color: var(--paper-dim); font: 8px var(--sans); letter-spacing: .17em; }
#login-form > label { display: block; margin-bottom: 18px; }
#login-form > label > span:first-child { display: block; margin-bottom: 8px; color: var(--paper-soft); font: 10px var(--sans); letter-spacing: .12em; }
#login-form input { width: 100%; height: 50px; border: 1px solid var(--line); outline: none; background: rgba(255,253,249,.66); color: var(--ink); padding: 0 14px; font: 14px var(--sans); transition: .2s ease; }
#login-form input:focus { border-color: rgba(168,70,50,.52); box-shadow: 0 0 0 3px rgba(168,70,50,.06); }
#login-form input::placeholder { color: #998f83; }
#login-form input:disabled { opacity: .52; cursor: not-allowed; }
.password-field { display: grid; grid-template-columns: 1fr 42px; }
.password-field input { grid-column: 1 / 3; grid-row: 1; padding-right: 46px !important; }
.password-field button { grid-column: 2; grid-row: 1; z-index: 1; border: 0; background: transparent; color: var(--paper-dim); cursor: pointer; font-size: 11px; }
.form-options { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 4px; }
.remember { display: flex; align-items: center; gap: 8px; color: var(--paper-dim); font: 10px var(--sans); cursor: pointer; }
.remember input { width: 13px !important; height: 13px !important; accent-color: var(--gold); }
.text-button { border: 0; background: transparent; color: var(--paper-dim); font: 10px var(--sans); cursor: pointer; }
.text-button:hover { color: var(--gold-light); }
.disabled-text { cursor: not-allowed; opacity: .62; }
.form-message { min-height: 18px; margin: 8px 0 5px !important; color: #d18d7b !important; font: 10px var(--sans) !important; }
.primary-login, .guest-login { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; cursor: pointer; transition: .25s ease; }
.primary-login { border: 1px solid var(--gold); background: var(--gold); color: #121713; letter-spacing: .16em; }
.primary-login:hover { background: var(--gold-light); transform: translateY(-2px); }
.primary-login-locked, .primary-login-locked:hover { border-color: rgba(75,54,86,.18); background: #eee4d0; color: #766b61; cursor: not-allowed; transform: none; }
.primary-login i { font: 20px var(--sans); font-style: normal; }
.login-divider { height: 42px; display: flex; align-items: center; gap: 10px; color: #6b6558; font: 9px var(--sans); }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.guest-login { justify-content: center; border: 1px solid var(--line); background: rgba(255,253,249,.46); color: var(--paper-soft); font-size: 12px; }
.guest-login:hover { border-color: rgba(185,154,94,.42); color: var(--gold-light); }
.guest-login-locked, .guest-login-locked:hover { color: #736d61; border-color: rgba(238,229,209,.09); cursor: not-allowed; }
.privacy-note { margin: 14px 0 0 !important; text-align: center; font: 9px/1.6 var(--sans) !important; color: #6f685a !important; }
.realm-hall { min-height: 100vh; padding: 130px clamp(18px, 6vw, 92px) 90px; background: radial-gradient(circle at 50% -10%, rgba(69,99,82,.24), transparent 38rem), linear-gradient(145deg,#0c1210,#151c18 54%,#101512); }
.hall-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.hall-hero h1 { margin: 18px 0 8px; font-family: var(--display); font-size: clamp(38px, 5vw, 66px); font-weight: 400; }
.hall-hero h1 span { color: var(--gold-light); }
.hall-hero p { color: var(--paper-dim); }
.signout { height: 40px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: var(--paper-dim); font: 10px var(--sans); cursor: pointer; }
.signout:hover { color: var(--gold-light); border-color: rgba(185,154,94,.4); }
.realm-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 36px; }
.game-card { min-height: 620px; display: grid; grid-template-rows: 310px 1fr; border: 1px solid var(--line); background: #18201c; overflow: hidden; transition: .3s ease; }
.game-card-live:hover { transform: translateY(-6px); border-color: rgba(185,154,94,.42); box-shadow: 0 35px 70px rgba(0,0,0,.25); }
.game-art { position: relative; overflow: hidden; padding: 24px; background-size: cover; background-position: center; }
.guixu-art { background-image: linear-gradient(0deg,rgba(11,16,13,.92),transparent 75%), linear-gradient(90deg,rgba(16,22,18,.15),rgba(35,95,74,.14)), url("./assets/sagerealm-home-hero.webp"); }
.ruihe-art { filter: grayscale(.84) brightness(.56); background-image: linear-gradient(145deg, #312c31, #6b625d 52%, #38313a); }
.game-index { color: rgba(238,229,209,.76); font: 9px var(--sans); letter-spacing: .25em; }
.game-seal { position: absolute; right: 28px; bottom: 10px; font: 108px/.8 var(--brush); color: rgba(238,229,209,.86); text-shadow: 0 15px 30px rgba(0,0,0,.5); }
.soon-veil { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,11,9,.36); color: rgba(238,229,209,.82); font-size: 22px; letter-spacing: .45em; text-indent: .45em; border: 1px solid rgba(238,229,209,.12); }
.game-copy { padding: 28px 30px 31px; display: flex; flex-direction: column; }
.game-state { display: flex; align-items: center; gap: 9px; color: #9dbca9; font: 9px var(--sans); letter-spacing: .16em; }
.game-state i { width: 7px; height: 7px; border-radius: 50%; background: #78a28b; box-shadow: 0 0 8px rgba(120,162,139,.8); }
.game-state.muted { color: #807a6e; }.game-state.muted i { background:#67655f; box-shadow:none; }
.game-copy h2 { margin: 13px 0 2px; font-family: var(--display); font-size: 36px; font-weight: 400; }
.game-latin { margin: 0 0 16px !important; color: var(--gold) !important; font: 9px var(--sans) !important; letter-spacing: .22em; }
.game-copy > p { margin: 0; color: var(--paper-dim); font-size: 12px; line-height: 1.75; }
.game-copy ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 22px; padding: 0; list-style: none; color: var(--paper-soft); font-size: 10px; }
.game-copy li::before { content: "·"; margin-right: 6px; color: var(--gold); }
.game-cta { height: 46px; margin-top: auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--gold); background: transparent; color: var(--gold-light); font-size: 12px; letter-spacing: .13em; transition: .23s ease; }
.game-cta:hover { background: var(--gold); color: var(--ink); }
.game-cta.disabled { width: 100%; border-color: rgba(238,229,209,.11); color: #6f6b62; cursor: not-allowed; }
.philosophy { margin-top: 82px; padding: 70px clamp(0px, 5vw, 70px); text-align: center; border-top: 1px solid var(--line); }
.philosophy .kicker { justify-content: center; }
.philosophy blockquote { max-width: 900px; margin: 34px auto; font-family: var(--display); font-size: clamp(22px, 3vw, 38px); line-height: 1.7; font-weight: 400; }
.principles { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 36px; color: var(--paper-dim); font: 10px var(--sans); letter-spacing: .14em; }
footer { min-height: 62px; padding: 0 clamp(18px,5vw,78px); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(75,54,86,.14); background: #e8deca; color: #685f55; font: 9px var(--sans); letter-spacing: .16em; }
@keyframes landscape-drift { to { transform: scale(1.065) translate3d(-.7%,.4%,0); } }
@media (max-width: 920px) { .login-view { grid-template-columns: 1fr; align-items: end; padding-top: 150px; } .login-copy { padding-right: 18%; } .typewriter-text { white-space: normal; } .login-panel { max-width: 540px; width: 100%; justify-self: end; } .about-sagerealm { padding-block: 76px; } .about-sagerealm h2 { white-space: normal; } .realm-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .site-header { height: 68px; padding: 0 14px; } .site-brand { gap:7px; } .logo-mark { width:40px; height:40px; } .site-brand b { font-size:20px; font-weight:720; letter-spacing:-.042em; } .site-brand small { display:none; } .site-header nav a { display:none; } .site-header nav { gap:12px; } .language-switch, .nav-login { padding:7px 0 9px; font-size:9px; } .nav-login-locked { font-size:8px; letter-spacing:.08em; } .nav-login-locked::before { width:4px; height:4px; margin-right:5px; } .login-view { padding: 120px 14px 55px; gap: 42px; } .login-copy { padding:0; } .login-copy h1 { font-size: clamp(29px, 9.7vw, 33px); line-height: 1.3; letter-spacing: .02em; } html[lang="en"] .login-copy h1 { max-width: 310px; font-size: clamp(25px, 7.7vw, 31px); line-height: 1.22; letter-spacing: .01em; } html[lang="zh-CN"] .login-copy h1 { font-size: clamp(30px, 9.4vw, 42px); line-height: 1.3; letter-spacing:.035em; } .login-copy > p { font-size: 13px; } .hero-inscription { display:none; } .login-panel { padding: 27px 20px; } .realm-hall { padding: 110px 14px 66px; } .game-card { min-height:560px; grid-template-rows:260px 1fr; } .game-copy { padding:24px 20px; } .game-copy ul { display:grid; } footer { flex-direction:column; justify-content:center; gap:7px; text-align:center; } }
@media (max-width: 640px) { .about-film { width: min(72vw, 360px); margin: 38px auto 0; position: relative; right: auto; bottom: auto; } .about-sagerealm::after { display: none; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } .about-film video { display: none; } }
