:root {
  color-scheme:dark;
  --night:#111d22;
  --ivory:#faf0d7;
  --gold:#e3ba7b;
  --line:#887253;
  --gutter:max(6vw,calc((100vw - 1310px)/2));
  color:var(--ivory); background:var(--night);
  font:500 16px/1.6 system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0}
button,select{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid #ffdc8d;outline-offset:4px}
.skip{position:fixed;left:0;top:0;z-index:9;transform:translateY(-110%);padding:10px;background:var(--night)}
.skip:focus{transform:none}
.mast{display:flex;align-items:center;gap:2.4rem;height:68px;padding:0 var(--gutter);background:#102023;border-bottom:1px solid #89744e}
.brand,.mast nav,.entry{display:inline-flex;align-items:center;gap:.7em}
.brand{font:700 1.22rem Georgia,serif}
.brand img{width:39px;height:39px}
.mast nav{margin-left:auto;gap:2.2rem;font-size:.85rem;color:#ebd7bc}
.mast a:hover,.text-link:hover,footer a:hover{color:#ffdc9e}
.entry{font-weight:650;color:#f4dfaf;font-size:.87rem;border-left:1px solid var(--line);padding-left:1.5rem}
.hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:500px;height:min(76svh,800px);overflow:hidden;border-bottom:3px double #ad8e5b}
.hero-plate,.hero:before{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
.hero-plate{object-fit:cover;object-position:58% 47%}
.hero:before{content:"";z-index:-1;background:linear-gradient(90deg,#111b1de0,#131d1f76 27%,transparent 57%)}
.hero-inner{width:min(38vw,450px);margin-left:var(--gutter);padding-block:35px}
.location,.encounter-copy span,.map label{display:flex;align-items:center;gap:.7em;margin:0 0 14px;font-size:.72rem;font-weight:700;color:var(--gold);text-transform:uppercase;letter-spacing:.17em}
.location i{height:1px;width:35px;background:#d09f68}
h1,h2,h3{font-family:Georgia,'Times New Roman',serif}
.hero h1{font-weight:500;line-height:.97;letter-spacing:-.063em;font-size:clamp(64px,7.9vw,133px);margin:0;color:#fff4cf;text-shadow:0 2px 10px #192019}
.hero h1 em{display:inline-block;margin-left:.22em;color:#e9bc73;font-weight:500}
.hero p{max-width:340px;margin:18px 0 26px;font-size:clamp(.93rem,1.2vw,1.13rem);color:#fff3d9;text-shadow:0 1px 4px #071417}
.play{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 30px;min-width:182px;color:#ffeed0;background:url('/game/van-gioi-home/command-plaque.svg') center/100% 100% no-repeat;font:bold 1.15rem Georgia,serif;letter-spacing:.02em}
.play img{width:32px;height:32px}
.play:hover,#strike:hover{filter:brightness(1.15)}
.band,.platform,footer{padding-inline:var(--gutter)}
.band{padding-block:48px;background:#12262a}
.section-head{display:flex;align-items:center;gap:20px;margin-bottom:24px}
.section-head:after{content:"";flex:1;height:3px;border-block:1px solid #9583576b}
h2{font-size:clamp(1.8rem,3.5vw,3.2rem);font-weight:500;letter-spacing:-.035em;margin:0;line-height:1.15}
.modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.modes article{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:flex-end;min-height:230px;border:1px solid #af9660}
.modes article>img:first-child,.modes article:after{position:absolute;inset:0;width:100%;height:100%;z-index:-2;object-fit:cover}
.modes article:after{content:"";z-index:-1;background:linear-gradient(0deg,#101c22 0%,#112227d4 42%,#17323324 100%)}
.modes article>div{padding:18px 22px;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}
.modes article>div img{width:52px;height:52px;margin-bottom:auto;object-fit:contain;filter:drop-shadow(0 2px 3px #0c201daa)}
h3{margin:14px 0 7px;font-size:clamp(1.3rem,2vw,1.75rem);font-weight:500;line-height:1.18}
.modes p,.map p,.platform p{margin:0;font-size:.93rem;line-height:1.5;color:#e5dfcf}
.encounter-wrap{position:relative;isolation:isolate;overflow:hidden;margin:0;min-height:285px;height:min(40vw,480px);display:flex;align-items:center;padding:20px var(--gutter);background:linear-gradient(90deg,#0f171ce3,#19343c4a),url('/game/immortal/long-cung.webp') center 55%/cover;border-block:1px solid var(--line)}
#encounter{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.encounter-copy{width:40%;text-shadow:0 2px 6px #091119}
.encounter-copy span{margin-bottom:9px;color:#f3e6c8}
#strike{border:0;background:transparent url('/game/van-gioi-home/command-plaque.svg') center/100% 100%;padding:13px 25px;margin-top:18px;font:bold 1.02rem Georgia,serif}
.motion-switch{position:absolute;bottom:12px;right:var(--gutter);border:1px solid #987953;padding:7px 13px;background:#152a2ae6;font-size:.86rem;min-height:44px}
.map{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);border:1px solid #927956;background:#1b3434}
.map>img{width:100%;height:100%;min-height:240px;max-height:390px;object-fit:cover}
.map-panel{padding:clamp(15px,3vw,40px);align-self:center}
.map label{margin-bottom:7px}
.map select,.map-pager button{border:1px solid #97845c;background:#13272a;color:var(--ivory);border-radius:0}
.map select{width:100%;min-height:44px;padding:7px 9px}
.map-pager{display:flex;align-items:center;gap:12px;margin:10px 0;font-size:.83rem;color:var(--gold)}
.map-pager button{min-width:44px;min-height:44px;padding:0;font-size:1.3rem}
.text-link{display:inline-block;color:var(--gold);margin-top:14px;border-bottom:1px solid var(--line)}
.platform{padding-block:23px;border-block:1px solid #76674f;background:#102023}
.platform h2{font-size:1.5rem}
.platform p{max-width:740px;margin-top:8px}
footer{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding-block:18px;font-size:.85rem}
footer span{font:600 1.1rem Georgia,serif}
@media(max-width:700px){
  .mast{gap:15px;height:56px}.mast nav{gap:10px}.brand{font-size:1.02rem}.brand img{width:32px;height:32px}
  .modes{gap:8px}.modes article>div{padding:13px}.band{padding-block:30px}
}
@media(max-width:600px) and (orientation:portrait){
  .mast nav{display:none}.entry{margin-left:auto}
  .hero{height:min(83svh,760px);min-height:535px;align-items:flex-end}
  .hero-plate{object-position:67% 15%;height:79%}
  .hero:before{background:linear-gradient(0deg,#111e21 15%,#101c21e8 32%,transparent 71%)}
  .hero-inner{width:85vw;padding:0 0 28px}
  .hero h1{font-size:clamp(52px,13vw,76px)}.hero h1 br{display:none}.hero h1 em{margin-left:.19em}
  .hero p{max-width:300px;margin:12px 0 16px}.location{margin-bottom:8px}
  .modes,.map{grid-template-columns:1fr}.modes{gap:12px}.modes article{min-height:182px}
  .map>img{min-height:0;height:200px}.map-panel{padding:20px}
  .encounter-wrap{min-height:390px;align-items:flex-end;padding-bottom:26px}.encounter-copy{width:85%}
  .motion-switch{bottom:auto;top:12px}.encounter-copy h2{font-size:1.8rem}
}
@media(orientation:landscape) and (max-height:530px){
  .mast{height:43px}.brand img{width:27px;height:27px}
  .hero{height:calc(100svh - 43px);min-height:236px}
  .hero-plate{object-position:58% 26%}.hero-inner{padding-block:12px;width:43%}.hero h1{font-size:clamp(41px,14svh,74px)}
  .hero p{font-size:.87rem;line-height:1.32;margin:8px 0 10px}.location{font-size:.62rem;margin-bottom:6px}
  .play{min-width:145px;padding:6px 20px;font-size:1rem}.play img{width:26px;height:26px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.hero-petals{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.hero-petals i{position:absolute;top:10%;left:var(--x);width:11px;height:6px;opacity:0;border-radius:0 90% 10% 85%;border-top:1px solid #f6dcab;background:linear-gradient(30deg,#8f4541,#deb184);transform-origin:20% 80%}
.hero-petals i:nth-child(1){--x:25%;--delay:-2s;--duration:16s}
.hero-petals i:nth-child(2){--x:38%;--delay:-10s;--duration:22s}
.hero-petals i:nth-child(3){--x:54%;--delay:-3s;--duration:20s}
.hero-petals i:nth-child(4){--x:68%;--delay:-8s;--duration:17s}
.hero-petals i:nth-child(5){--x:84%;--delay:-15s;--duration:24s}
[data-motion=on] .hero-petals i{animation:falling-petal var(--duration) var(--delay) linear infinite}
@keyframes falling-petal{
  0%{opacity:0;transform:translate(0,-3vh) rotate(18deg) scale(.5)}
  12%{opacity:.78}
  35%{transform:translate(-2vw,12vh) rotate(75deg) scale(.75,.4)}
  63%{opacity:.65;transform:translate(-8vw,23vh) rotate(154deg) scale(.82)}
  100%{opacity:0;transform:translate(-11vw,37vh) rotate(226deg) scale(.6,.3)}
}

/* The entrance uses the same painted silk as the in-game navigation. */
.mast .entry,.hero .play,.platform .entry,.map-pager button,.motion-switch{
 border-image:none;border:1px solid #bb9e63;border-radius:24px 8px 29px 9px / 17px 26px 16px 22px;
 background:#254738 url('/game/son-coc/thanh-lua.webp') 52% 34%/cover;color:#fff1cf}
.hero .play{background-image:linear-gradient(105deg,#81492be8,#713d2dbe),url('/game/son-coc/thanh-lua.webp')}
.modes article,.map-panel{border-radius:28px 9px 25px 7px;overflow:hidden}
