@font-face{font-family:Noto;src:url('../fonts/NotoSans-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
@font-face{font-family:Noto;src:url('../fonts/NotoSans-Bold.ttf') format('truetype');font-display:swap;font-weight:700}
@font-face{font-family:NotoSerif;src:url('../fonts/NotoSerif-Bold.ttf') format('truetype');font-display:swap;font-weight:700}
@font-face{font-family:NotoSerif;src:url('../fonts/NotoSerif-BoldItalic.ttf') format('truetype');font-display:swap;font-weight:700;font-style:italic}
:root{color-scheme:dark;--gold:#e8b96d;--pale:#ffe9b4;--muted:#c3b8b7;--fire:#ff5b17;--line:#e1ab6244}
*{box-sizing:border-box}
body{margin:0;min-height:100svh;background:#100c14;color:#f9eee0;font:13px Noto,Arial,sans-serif;overflow-x:hidden}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer;border:0}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible{outline:2px solid #fff1c4;outline-offset:5px}
button:disabled{opacity:.45;cursor:default}
.icon{width:22px;height:22px;flex:none;pointer-events:none}
.backdrop,.atmosphere{position:fixed;inset:0;pointer-events:none}
.backdrop{background:url('../images/battlefield-v2.png') center center/cover no-repeat}
.atmosphere{background:linear-gradient(90deg,#0b081554,transparent 66%),linear-gradient(0deg,#10090fee,transparent 26%,transparent 85%,#0d0b18b3)}

/* Forged silver wordmark and narrow in-world navigation. */
.site-header{position:relative;z-index:4;height:90px;display:flex;align-items:center;gap:45px;padding:0 5%;background:linear-gradient(#10101ce8,#0d0c18ba 75%,#0d0c1844);border-bottom:1px solid #c799575e;box-shadow:0 5px 20px #0003}
.site-header:after{content:'';position:absolute;bottom:-2px;left:5%;right:5%;height:3px;background:linear-gradient(90deg,transparent,#dbaa6466,transparent 40%,#dbaa6466,transparent);pointer-events:none}
.brand{width:156px;flex:none;display:flex;align-items:center;flex-direction:column;line-height:1;filter:drop-shadow(2px 4px 2px #000)}
.brand img{display:block;width:100%;height:auto;max-height:84px;object-fit:contain}
.edition .intro-logo{display:block;width:100%;height:auto;max-width:460px;margin-top:-42px;margin-bottom:6px;filter:drop-shadow(0 3px 4px #000)}
.brand-mark{position:relative;font:900 72px/.82 Georgia,serif;letter-spacing:-8px;background:linear-gradient(#fff 3%,#f3f5ff 19%,#657a9c 37%,#fff 43%,#c4cde8 53%,#536581 58%,#dce5f3 72%,#7e89ad 83%,#f1eddf);background-clip:text;-webkit-text-fill-color:transparent;-webkit-text-stroke:.6px #c3cee0}
.brand-wing{position:absolute;right:-22px;top:-1px;font-size:22px;letter-spacing:0}
.brand-sub{font:700 14px Georgia,serif;letter-spacing:7px;padding-left:9px;margin-top:5px;color:#ffe5a0;text-shadow:0 2px #2a1308}
.site-header nav{display:flex;align-self:stretch;gap:12px;margin:auto}
.nav-item{position:relative;min-width:93px;padding:14px 12px 10px;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;background:transparent;color:#d6d1d5;font-size:11px;text-shadow:0 2px 3px #000}
.nav-item .icon{width:19px;height:19px}
.nav-item:hover,.nav-item.active{color:#ffdf9d;background:linear-gradient(0deg,#c57c2022,transparent)}
.nav-item.active .icon{filter:drop-shadow(0 0 5px #ff8b20)}
.nav-item.active:after{content:'';position:absolute;bottom:0;left:10px;right:10px;height:2px;background:#ffc776;box-shadow:0 0 8px #ff7c27}
.language{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #a28b705c;background:#090a13aa;font-size:10px}
.vietnam-flag{display:block;background:#ba121e;color:#ffea42;width:21px;line-height:15px;text-align:center;font-size:11px}

/* The knight owns the right-hand viewport; all copy stays on the left. */
.experience{position:relative;isolation:isolate;min-height:max(690px,calc(100svh - 138px));display:flex;flex-direction:column}
#scene{position:absolute;z-index:1;left:35%;right:0;top:-25px;bottom:125px;touch-action:pan-y}
#scene canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab}
#scene canvas:active{cursor:grabbing}
.knight-preview{position:absolute;left:50%;top:0;transform:translateX(-50%);width:auto;max-width:100%;height:100%;object-fit:contain;pointer-events:none}
.scene-ready .knight-preview{display:none}
.static-scene canvas{display:none}
.intro-copy{position:relative;z-index:2;width:465px;margin:clamp(100px,15vh,170px) 0 55px 7%;text-align:center;pointer-events:none}
.intro-copy>*{pointer-events:auto}
.eyebrow{display:flex;align-items:center;justify-content:center;gap:13px;color:#f1d4ad;font-size:9px;letter-spacing:3.2px;text-shadow:0 2px 4px #000}
.eyebrow>span{height:1px;width:29px;background:linear-gradient(90deg,transparent,#e3b87c)}
.eyebrow>span:last-child{transform:rotate(180deg)}
.edition{display:flex;flex-direction:column;align-items:center;margin-top:22px;filter:drop-shadow(0 4px 1px #07080b) drop-shadow(0 0 16px #080513)}
.edition>span{display:block;font:900 italic 65px/.98 Georgia,'Times New Roman',serif;letter-spacing:-3px;white-space:normal;overflow-wrap:anywhere;max-width:100%;padding:0 9px 6px;background:linear-gradient(#fff 4%,#fff 28%,#b9bdcf 43%,#777f94 47%,#f6f3ec 55%,#d2d0d8 79%,#7c8192);background-clip:text;-webkit-text-fill-color:transparent;-webkit-text-stroke:.45px #c4c5cb}
.edition>strong{position:relative;width:95%;padding:6px 18px 10px;border-top:1px solid #ffba5c88;border-bottom:1px solid #ff8a3666;background:linear-gradient(90deg,transparent,#26040cdb 16%,#54110ee8 50%,#26040cdb 84%,transparent);font:700 italic 36px/1.05 Georgia,serif;letter-spacing:1px;color:#ffd97d;text-shadow:0 2px #67200a,0 0 12px #ff481877}
.edition>strong:before,.edition>strong:after{content:'✦';font-size:15px;position:absolute;top:17px;color:#fff4be;text-shadow:0 0 8px #ff4a00,0 0 18px #ff4a00}
.edition>strong:before{left:9px}.edition>strong:after{right:9px}
.gold-rule{display:none}
h1{margin:17px 0 10px;font:700 italic 32px/1.25 Georgia,'Times New Roman',serif;color:#fff0b7;text-shadow:1px 3px 2px #120b13,0 0 14px #000}
.description{max-width:440px;margin:0 auto 30px;font-size:12px;line-height:1.9;color:#f5e6db;text-shadow:0 2px 4px #000,0 0 9px #000}

/* A beveled, six-sided start button with independently glowing edges. */
.start-game{position:relative;isolation:isolate;display:flex;align-items:center;gap:14px;min-height:78px;width:350px;margin:0 auto;padding:14px 31px;border:0;background:transparent;filter:drop-shadow(0 5px 0 #351009) drop-shadow(0 0 12px #ff4b2077);transform:perspective(600px) rotateX(9deg);transition:transform .2s,filter .2s;animation:forge-glow 3s ease-in-out infinite}
.start-game:before,.start-game:after{content:'';position:absolute;clip-path:polygon(5% 0,95% 0,100% 50%,95% 100%,5% 100%,0 50%);pointer-events:none}
.start-game:before{inset:0;z-index:-2;background:linear-gradient(#fff3b4,#d38a31 14%,#ffb83d 26%,#8d3a13 51%,#ffd87a 76%,#fff0ba 88%,#ff6b23);box-shadow:inset 0 0 13px #fff2ac}
.start-game:after{inset:3px;z-index:-1;background:radial-gradient(ellipse at 50% 120%,#ff9b05,transparent 65%),linear-gradient(#e45112,#a92007 19%,#8e1308 47%,#4b080a 49%,#a81906 79%,#ed5710)}
.start-game:hover{transform:perspective(600px) rotateX(0) translateY(-3px);filter:brightness(1.15) drop-shadow(0 0 22px #ff7818aa)}
.start-game:active{transform:translateY(3px)}
.start-game>span:not(.start-icon):not(.button-shine){flex:1}
.start-game strong{display:block;font:700 23px Georgia,serif;white-space:nowrap;text-shadow:0 2px 2px #350400;letter-spacing:.3px}
.start-game small{display:block;color:#ffe4a4;font-size:8px;letter-spacing:1.2px;margin-top:5px}
.start-icon{display:grid;place-items:center;color:#ffe7a6;filter:drop-shadow(0 0 5px #ffbe26)}
.start-icon .icon{width:25px;height:25px}
.start-arrow{width:17px;height:17px}
.button-shine{position:absolute;inset:6px 13px;border-top:1px solid #ffedab88;border-bottom:1px solid #ffdf9277;pointer-events:none;background:linear-gradient(110deg,transparent 32%,#ffe7a533 48%,transparent 64%);background-size:300% 100%;animation:shine 5s infinite}
.intro-meta{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;font-size:9px;color:#e1c9b6;text-shadow:0 2px 4px #000}
.tiny-diamond{display:inline-block;width:5px;height:5px;transform:rotate(45deg);background:var(--gold);flex:none}
.power-button{display:flex;align-items:center;justify-content:center;gap:9px;margin:18px auto 0;background:transparent;color:#ffe7bc;font-size:11px;text-shadow:0 2px 4px #000}
.power-button .icon{width:31px;height:31px;padding:8px;border:1px solid #e6aa4c;border-radius:50%;background:linear-gradient(135deg,#ffb22b66,#240511);box-shadow:0 0 14px #ff6c1733}
.power-button:hover{color:#fff}.power-button:hover .icon{box-shadow:0 0 18px #ff6c17aa}
.scene-controls{position:absolute;z-index:3;right:5%;bottom:152px;display:flex;align-items:center;gap:5px}
.scene-controls>span{font-size:8px;color:#e4c4b1;margin-right:8px;text-shadow:0 2px 4px #000}
.scene-controls button{display:grid;place-items:center;width:29px;height:29px;color:#eed4b6;background:#150c16c2;border:1px solid #d4a36266}
.scene-controls .icon{width:13px;height:13px}
.scene-controls button:hover{border-color:#ffd596;color:#fff}

.platform-dock{position:relative;z-index:3;margin:0 7% 23px;margin-top:auto;padding-top:15px}
.dock-heading{display:flex;align-items:center;gap:9px;margin-bottom:12px;text-shadow:0 2px 5px #000}
.dock-heading h2{font-size:9px;letter-spacing:2px;font-weight:400;color:#e8d6bc;margin:0}
.dock-caption{margin-left:auto;font-size:9px;color:#cfbfae}
.platforms{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.platform{position:relative;display:flex;align-items:center;text-align:left;gap:20px;padding:18px 24px;min-height:80px;border:1px solid #b18b556f;background:linear-gradient(145deg,#26202ada,#0e0c13f5 55%,#23151be8);box-shadow:inset 0 1px #ffe6b222,inset 0 -3px #0008,0 6px 15px #0005;transition:border-color .2s,transform .2s}
.platform:before{content:'';position:absolute;inset:4px;border:1px solid #ddbb8422;pointer-events:none;clip-path:polygon(0 0,30% 0,30% 5%,70% 5%,70% 0,100% 0,100% 100%,70% 100%,70% 95%,30% 95%,30% 100%,0 100%)}
.platform>.icon{width:31px;height:31px;color:#cfb386;filter:drop-shadow(0 2px 2px #000)}
.platform-text{display:flex;flex-direction:column;gap:4px}.platform strong{font-size:16px;letter-spacing:.3px}.platform small{font-size:9px;color:#c1b7b4}
.platform-check{margin-left:auto;color:#ffda8e;opacity:0}
.platform.selected{border-color:#efb15d;background:linear-gradient(145deg,#63341de8,#24121cf0 65%,#4e2318e8);box-shadow:inset 0 1px #ffe2ae77,0 0 23px #ff7c1826}
.platform.selected:after{content:'';position:absolute;bottom:-1px;left:23%;right:23%;height:2px;background:#ffe6a3;box-shadow:0 0 10px #ff7f14,0 0 18px #ff4f00}
.platform.selected>.icon{color:#ffe0a2}.platform.selected .platform-check{opacity:1}
.platform:hover{transform:translateY(-3px);border-color:#eac588}
.site-footer{position:relative;z-index:3;min-height:48px;padding:12px 5%;border-top:1px solid #d09c4838;background:#09090edb;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#b2a5a4;font-size:8px;letter-spacing:.5px}
.site-footer button{display:flex;align-items:center;gap:8px;background:none;color:#d1bda9;font-size:9px;padding:0}
.site-footer .icon{width:13px;height:13px}.notice-dot{width:4px;height:4px;border-radius:50%;background:#ffb953;box-shadow:0 0 7px #ff8127}
.footer-edition{letter-spacing:1px}.footer-edition b{color:#d3a86a;padding:0 9px}
.app-install{position:relative;z-index:3;background:#09090edb}

dialog{width:min(520px,calc(100% - 30px));padding:37px;color:#e0d5cd;border:1px solid #b78a51;background:linear-gradient(145deg,#30202b,#100d18 70%);border-radius:4px;box-shadow:0 25px 100px #000a}
dialog::backdrop{background:#070311ce;backdrop-filter:blur(7px)}
.dialog-close{position:absolute;right:15px;top:15px;background:none;color:#d2ba9b}
.dialog-emblem{display:block;color:#efbf74;font-size:28px;margin-bottom:20px}
dialog .eyebrow{justify-content:flex-start}
dialog h2{font:italic 29px/1.3 Georgia,serif;color:var(--pale)}
#dialog-content{font-size:13px;line-height:1.9;white-space:pre-line;color:#c5bac3;overflow-wrap:anywhere}
#dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.dialog-action{display:inline-flex;align-items:center;gap:12px;padding:12px 17px;border:1px solid #b18d56;background:#80623920;color:#efd7ad;font:inherit;font-size:12px}
.dialog-action:hover{background:#80623950}.dialog-action.secondary{border-color:#62677970;color:#b5bcc9}
.webgl-fallback{position:absolute;bottom:10%;left:15%;right:15%;font-size:11px;line-height:1.7;color:#f2ddc6;background:#160c18d9;padding:15px;border:1px solid #dfbd7c55}
.no-script{position:fixed;z-index:20;bottom:0;left:0;right:0;padding:15px;background:#141824}.no-script a{text-decoration:underline}
@keyframes forge-glow{50%{filter:drop-shadow(0 5px 0 #351009) drop-shadow(0 0 22px #ff631baa)}}
@keyframes shine{0%,20%{background-position:150% 0}65%,100%{background-position:-100% 0}}

@media(min-width:1700px){.intro-copy{width:540px;margin-left:8%;margin-top:17vh}.edition>span{font-size:76px}.edition>strong{font-size:42px}h1{font-size:37px}.description{font-size:13px;max-width:485px}.start-game{width:380px;min-height:84px}.platform-dock{margin-left:8%;margin-right:8%}}
@media(min-width:761px) and (max-width:1150px){
  .site-header{gap:20px;padding:0 3%}.brand{width:125px}.nav-item{min-width:78px;padding-left:7px;padding-right:7px}.site-header nav{gap:4px}
  .intro-copy{width:360px;margin-left:4%;margin-top:120px}.edition>span{font-size:50px}.edition>strong{font-size:29px}h1{font-size:28px}.description{max-width:330px;font-size:11px}.start-game{width:315px;padding:14px 26px;gap:10px}.start-game strong{font-size:21px}
  #scene{left:35%;right:0}.platform-dock{margin-left:4%;margin-right:4%}.platform{padding:17px;gap:13px}.footer-edition{display:none}
}
@media(min-width:761px) and (max-width:880px){.intro-copy{width:320px;margin-left:3%}.edition>span{font-size:44px}.edition>strong{font-size:27px}.start-game{width:290px}.start-game strong{font-size:18px}.site-header{gap:7px}.nav-item{min-width:68px;font-size:10px}.brand{width:109px}.brand-mark{font-size:63px}.platform{gap:10px;padding:15px}.platform strong{font-size:14px}.platform>.icon{width:26px}}
@media(max-width:760px){
  .backdrop,.atmosphere{position:fixed;inset:0;height:auto}
  .backdrop{background-position:53% top;background-size:auto 100vh;background-size:auto 100svh}
  .atmosphere{background:linear-gradient(0deg,#100b15ee,transparent 85%)}
  .site-header{height:60px;padding:0 4%;gap:8px}.brand{width:83px}.brand img{max-height:56px}
  .site-header nav{gap:0;margin-left:auto;margin-right:0}.nav-item{min-width:38px;padding:10px 9px;gap:0}.nav-item span{display:none}.nav-item .icon{width:18px;height:18px}.nav-item[data-panel=community]{display:none}.nav-item.active:after{left:7px;right:7px}
  .language{gap:4px;padding:4px;font-size:8px}.vietnam-flag{width:17px;line-height:12px;font-size:9px}
  .experience{--mobile-scene-height:clamp(180px,36vh,320px);--mobile-scene-height:clamp(180px,36svh,320px);min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--mobile-scene-height) auto auto}
  #scene{position:relative;grid-area:1/1;inset:auto;width:100%;height:100%;min-height:0}
  .scene-controls{position:relative;grid-area:1/1;inset:auto;align-self:end;justify-content:flex-end;margin:0 5% 8px}.scene-controls>span{margin-right:auto;font-size:8px}.scene-controls button{width:30px;height:30px}
  .intro-copy{grid-area:2/1;display:flex;flex-direction:column;align-items:center;width:auto;margin:0 5% 16px}
  .intro-copy>.eyebrow,.edition .intro-logo{display:none}
  .edition{order:0;width:100%;margin:0}.edition>strong{font-size:24px;line-height:1.1;width:100%;max-width:380px;padding:5px 18px 7px}.edition>strong:before,.edition>strong:after{font-size:11px;top:12px}
  h1{order:1;font-size:23px;margin:10px 0 13px;overflow-wrap:anywhere}
  .start-game{order:2;width:min(330px,100%);min-height:64px;gap:11px;padding:11px 27px}.start-game small{font-size:7px;letter-spacing:.7px}.start-icon .icon{width:22px;height:22px}
  .intro-meta{order:3;font-size:8px;margin-top:10px}
  .description{order:4;font-size:11px;line-height:1.7;margin:12px 0 0;max-width:340px;overflow-wrap:anywhere}
  .power-button{order:5;margin-top:10px;font-size:10px;min-height:32px}.power-button .icon{width:26px;height:26px;padding:6px}
  .platform-dock{grid-area:3/1;margin:0 5% 16px;padding-top:0}.dock-heading{margin-bottom:9px;justify-content:center}.dock-heading h2{font-size:8px;letter-spacing:1.4px}.dock-caption{display:none}
  .platforms{gap:7px}.platform{min-height:74px;flex-direction:column;justify-content:center;gap:6px;padding:9px 3px;text-align:center}.platform>.icon{width:22px;height:22px}.platform-text{gap:3px}.platform strong{font-size:12px}.platform small{font-size:7px;letter-spacing:-.1px}.platform-check{position:absolute;right:5px;top:4px;font-size:8px}
  .site-footer{flex-wrap:wrap;justify-content:center;text-align:center;gap:8px 16px;min-height:40px;padding:10px 5%;font-size:8px}.footer-edition{display:none}.webgl-fallback{left:8%;right:8%;bottom:13%;font-size:10px}
  dialog{padding:28px;max-height:calc(100vh - 28px);max-height:calc(100svh - 28px);overflow-y:auto}dialog h2{font-size:26px}.dialog-emblem{margin-bottom:13px}
}
@media(max-width:360px){.site-header{height:56px;gap:4px;padding:0 3%}.nav-item{min-width:33px;padding:10px 7px}.brand{width:76px}.language{padding:3px}.edition>strong{font-size:22px}.start-game{gap:8px;padding:11px 24px}.platforms{gap:5px}.platform-dock{margin-left:4%;margin-right:4%}}
/* Short landscape screens keep the CTA beside the real WebGL viewport. */
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){
  .site-header{height:54px;padding:0 4%;gap:10px}.brand{width:88px}.brand img{max-height:50px}.site-header nav{gap:0}.nav-item{min-width:50px;padding:8px;gap:0}.nav-item span{display:none}
  .experience{min-height:0;display:grid;grid-template-columns:minmax(0,44%) minmax(0,56%);grid-template-rows:minmax(240px,calc(100vh - 54px)) auto;grid-template-rows:minmax(240px,calc(100svh - 54px)) auto}
  #scene{position:relative;grid-area:1/2;inset:auto;width:100%;height:100%;min-height:0}
  .intro-copy{grid-area:1/1;align-self:center;display:flex;flex-direction:column;align-items:center;width:auto;margin:12px 5% 18px}
  .intro-copy>.eyebrow,.edition .intro-logo{display:none}.edition{order:0;width:100%;margin:0}.edition>strong{font-size:23px;padding:5px 14px 7px}.edition>strong:before,.edition>strong:after{font-size:10px;top:11px}
  h1{order:1;font-size:21px;margin:8px 0 12px;overflow-wrap:anywhere}.start-game{order:2;width:min(310px,100%);min-height:60px;padding:10px 23px;gap:8px}.start-game small{font-size:6px;letter-spacing:.5px}.intro-meta{order:3;margin-top:9px;font-size:8px}
  .description{order:4;font-size:10px;line-height:1.6;margin:10px 0 0;max-width:330px;overflow-wrap:anywhere}.power-button{order:5;margin-top:8px;min-height:30px;font-size:10px}.power-button .icon{width:25px;height:25px;padding:6px}
  .scene-controls{position:relative;grid-area:1/2;inset:auto;align-self:end;justify-content:flex-end;margin:0 7% 10px}.scene-controls>span{margin-right:auto}.scene-controls button{width:30px;height:30px}
  .platform-dock{grid-area:2/1/3/3;margin:10px 5% 16px;padding:0}.platform{min-height:66px;padding:10px;gap:9px}.platform strong{font-size:12px}.platform>.icon{width:24px;height:24px}.dock-caption,.footer-edition{display:none}
}
@media(prefers-reduced-motion:reduce){.start-game,.button-shine{animation:none}*{scroll-behavior:auto!important;transition:none!important}}
/* Bundled Vietnamese glyphs keep composite accents together on every OS. */
h1,dialog h2{font-family:NotoSerif,Georgia,serif;font-weight:700}
.start-game strong{font-family:NotoSerif,Georgia,serif;font-size:20px;letter-spacing:0}
@media(max-width:1150px){.start-game strong{font-size:18px}}
@media(max-width:360px){.start-game strong{font-size:16px}}

