/* Home command lobby. Existing account, news, packs, audio and mail hooks remain. */
.lby-page { --hud-line:rgba(255,245,224,.24); --hud-gold:#e9c783; font-family:Arial,"Noto Sans Thai",sans-serif; }
.lby-page *, .lby-page *::before, .lby-page *::after { box-sizing:border-box; }
.lby-page a { color:inherit; text-decoration:none; }
.lby-page a:focus-visible,.lby-page button:focus-visible { outline:2px solid #f1d397; outline-offset:5px; }
.lby-page .lby-hdr { position:absolute!important; inset:0 0 auto; height:116px; padding:26px 3.3vw!important; z-index:40; background:linear-gradient(#07080bd9,transparent); border:0; box-shadow:none; display:flex; justify-content:space-between; align-items:flex-start; }
.lby-hdr-l { display:flex; align-items:center; gap:24px; }
.lby-brand { width:76px; display:block; }
.lby-page .lby-logo { width:76px; height:70px; object-fit:contain; }
.lby-page .lby-profile { border:0; border-left:2px solid var(--hud-gold); background:linear-gradient(90deg,#14151bd9,#14151b00); border-radius:0; padding:10px 30px 10px 16px; gap:12px; min-width:190px; }
.lby-profile-avatar-frame { display:block; flex:0 0 45px; width:45px; height:45px; overflow:hidden; isolation:isolate; border:1px solid var(--hud-line); }
.lby-page .lby-profile-av { display:block; width:100%; height:100%; max-width:none; border-radius:0; border:0; object-fit:cover; }
.lby-page .lby-profile-info { min-width:0; }
.lby-page .lby-profile-info strong { font:600 23px/1.15 Arial,sans-serif; max-width:210px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lby-page .lby-profile-info small { font:10px/1.5 Arial,sans-serif; color:#d4d1cc; letter-spacing:.08em; }
.lby-hdr-r { display:flex; align-items:center; padding-top:7px; }
.lby-page .lby-res-bar { display:flex; gap:12px; }
.lby-page .lby-res { display:grid; grid-template-columns:24px auto; grid-template-rows:22px 12px; column-gap:9px; min-width:108px; padding:7px 18px; border:0; border-bottom:1px solid var(--hud-line); border-radius:0; background:linear-gradient(105deg,#080a0ebd,#17171e4d); }
.lby-res-ico { grid-row:1/3; align-self:center; }
.lby-page .lby-res-val { font:600 21px/1 Arial,sans-serif; color:white; }
.lby-res small { font:8px/1 Arial,sans-serif; color:#c2bfb8; letter-spacing:.18em; }
.lby-page .lby-main { flex:none; display:block; width:100%; height:100dvh; min-height:650px; position:relative; }
.lby-page .lby-bg { position:absolute; inset:0; height:100%; }
.lby-page .lby-bg-slide { object-fit:cover; object-position:center; }
.lby-page .lby-bg-active { opacity:1; }
.lby-page .lby-vignette { position:absolute; inset:0; background:linear-gradient(90deg,#08090c85,transparent 30%,transparent 62%,#08090c77),linear-gradient(0deg,#05070cde,transparent 32%,transparent 75%,#07070b55); }
.lby-page .lby-util { position:absolute; inset:115px 3.4vw auto auto; display:flex; flex-direction:row-reverse; padding:0; gap:17px; width:auto; z-index:30; }
.lby-page .lby-u { width:43px; height:43px; border:0; border-radius:0; color:#faf5e9; background:#0b0d126b; border-bottom:1px solid var(--hud-line); }
.lby-page .lby-u:hover { background:#ffffff24; transform:translateY(-3px); }
.lby-page .lby-left { position:absolute; left:3.4vw; bottom:114px; width:clamp(300px,28vw,450px); padding:0; display:flex; flex-direction:column; gap:13px; overflow:visible; }
.lby-quick { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; }
.lby-quick a { display:flex; flex-direction:column; gap:7px; padding:15px 10px 11px; background:linear-gradient(105deg,#101218c9,#12141b76); border-bottom:2px solid #e9c78366; transition:background .2s; }
.lby-quick a:hover { background:#23252ee8; }
.lby-quick strong { font-size:clamp(13px,1.15vw,19px); font-weight:600; }
.lby-quick small { font-size:10px; color:#cbc8c2; white-space:nowrap; }
.lby-page .lby-fp { order:3; height:148px; border-radius:0; border:1px solid var(--hud-line); background:#10131a9c; backdrop-filter:none; }
.lby-page .lby-fp::before { background:linear-gradient(90deg,#0a0c13ec,#0a0c1377 58%,transparent); }
.lby-page .lby-fp-bg { filter:none; opacity:.8; inset:0; width:100%; height:100%; object-fit:cover; }
.lby-page .lby-fp-head { position:absolute; left:0; top:0; width:70%; height:100%; padding:20px; gap:7px; }
.lby-page .lby-fp-kicker { font:8px/1.3 Arial,sans-serif; letter-spacing:.2em; }
.lby-page .lby-fp-name { font-size:24px; line-height:1.05; }
.lby-page .lby-fp-cta { font:700 9px/1 Arial,sans-serif; padding:7px 10px; background:#eee7d6; color:#1b1916; border-radius:0; box-shadow:none; }
.lby-page .lby-fp-art { position:absolute; inset:0 0 0 58%; height:100%; border:0; background:none; }
.lby-page .lby-fp-art #fpArtImg { width:100%; height:100%; object-fit:cover; opacity:.5; }
.lby-page .lby-fp-logo-img { max-width:88%; max-height:75%; }
.lby-page .lby-fp-dots { position:absolute; right:12px; bottom:9px; padding:0; }
.lby-page .lby-news { order:2; flex:none; min-height:0; border:0; border-radius:0; background:#0c0e15b5; backdrop-filter:blur(8px); }
.lby-page .lby-news-hdr { padding:10px 13px; border-bottom:1px solid #ffffff12; }
.lby-page .lby-news-label { font:600 9px/1 Arial,sans-serif; letter-spacing:.15em; color:#eee7d6; }
.lby-page .lby-news-list { max-height:100px; min-height:42px; padding:0; }
.lby-page .lby-news-list .lby-empty { padding:16px; font:11px/1.5 Arial,sans-serif; color:#b7b8be; }
.lby-page .lby-nc { padding:9px 12px; }
.lby-page .lby-nc-thumb { width:46px; height:40px; }
.lby-page .lby-nc-title { font:12px/1.4 Arial,sans-serif; }
.lby-page .lby-right { position:absolute; right:4vw; top:30%; width:clamp(340px,29vw,500px); display:flex; flex-direction:column; gap:12px; padding:0; overflow:visible; }
.lby-section-kicker { display:flex; align-items:center; gap:8px; font:700 9px/1 Arial,sans-serif; letter-spacing:.17em; color:white; text-shadow:0 1px 8px #000; }
.lby-section-kicker>span { width:5px; height:5px; background:var(--hud-gold); transform:rotate(45deg); }
.lby-section-kicker small { margin-left:auto; font:10px/1 Arial,sans-serif; letter-spacing:0; color:#ddd5ca; }
.lby-battle { position:relative; isolation:isolate; height:172px; display:flex; align-items:center; padding:24px 28px; overflow:hidden; border-left:3px solid var(--hud-gold); border-top:1px solid var(--hud-line); background:#11131cb0; transition:background .2s,transform .2s; }
.lby-battle:hover { transform:translateX(-5px); background:#191d2ada; }
.lby-battle-art { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; opacity:.32; }
.lby-battle::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#090c14c9,#0e121a44); }
.lby-battle small { color:#ded2b9; font-size:8px; letter-spacing:.2em; }
.lby-battle strong { display:block; font:500 clamp(48px,5vw,76px)/1.1 Arial,sans-serif; letter-spacing:-.045em; color:white; }
.lby-battle p { margin:7px 0 0; font-size:12px; color:#d8d4cc; }
.lby-battle-emblem { position:absolute; right:35px; width:95px; height:110px; object-fit:contain; opacity:.8; }
.lby-battle-arrow { position:absolute; top:13px; right:15px; font-size:22px; color:#e5c990; }
.lby-online { display:flex; align-items:center; gap:15px; min-height:64px; padding:12px 20px; background:#e9e4d9ec; color:#15171d!important; }
.lby-online-symbol { font-size:36px; font-weight:300; }
.lby-online div { flex:1; display:flex; flex-direction:column; gap:5px; }
.lby-online strong { font-size:16px; letter-spacing:.06em; }
.lby-online small { font-size:10px; color:#53535a; }
.lby-online:hover { background:#fff8e5; }
.lby-submodes { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.lby-submodes a { position:relative; isolation:isolate; height:87px; overflow:hidden; padding:17px; background:#111620d4; border-bottom:1px solid var(--hud-line); }
.lby-submodes img { position:absolute; z-index:-1; inset:0; width:100%; height:100%; object-fit:cover; opacity:.22; transition:opacity .2s; }
.lby-submodes a:hover img { opacity:.5; }
.lby-submodes span { display:flex; flex-direction:column; gap:9px; }
.lby-submodes strong { font-size:16px; font-weight:500; }
.lby-submodes small { font-size:10px; color:#cbc7bf; }
.lby-submodes b { position:absolute; top:10px; right:12px; font-weight:400; color:#d6ba7a; }
.lby-event-link { display:flex; align-items:center; gap:14px; padding:11px 15px; background:#12141a99; border:1px solid #ffffff13; }
.lby-event-link span:first-child { font:700 8px/1 Arial,sans-serif; letter-spacing:.1em; background:var(--hud-gold); color:#1d1b16; padding:5px 7px; }
.lby-event-link strong { flex:1; font-size:11px; font-weight:400; }
.lby-footer { position:absolute; inset:auto 3.4vw 25px; z-index:12; display:flex; align-items:flex-end; justify-content:space-between; gap:30px; }
.lby-footer-brand { font:600 11px/1.5 "Cinzel",serif; letter-spacing:.22em; color:#d5cbb7; }
.lby-footer-brand small { display:block; font:8px/2 Arial,sans-serif; letter-spacing:.28em; color:#b3b1b5; }
.lby-dock { display:flex; gap:4px; }
.lby-dock a { position:relative; min-width:112px; padding:13px 20px 11px; display:flex; flex-direction:column; gap:7px; background:#12141aeb; border:1px solid #ffffff13; transition:background .2s,transform .2s; }
.lby-dock a:hover { background:#22252ff5; transform:translateY(-4px); }
.lby-dock-icon { display:block; width:23px; height:23px; color:#fff; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.lby-dock strong { font-size:17px; font-weight:500; }
.lby-dock small { font-size:10px; color:#acaeb6; }
@media(min-width:901px) and (max-height:780px) {
 .lby-page .lby-right { top:25%; gap:8px; }
 .lby-battle { height:135px; }
 .lby-page .lby-left { bottom:105px; gap:9px; }
 .lby-quick a { padding-top:11px; }
 .lby-page .lby-news-list { max-height:65px; }
 .lby-page .lby-fp { height:130px; }
}
@media(max-width:1100px) and (min-width:901px) {
 .lby-page .lby-res { min-width:86px; padding:7px 10px; }
 .lby-page .lby-res-bar { gap:5px; }
 .lby-page .lby-left { width:300px; }
 .lby-page .lby-right { width:340px; }
 .lby-dock a { min-width:100px; padding:12px; }
}
@media(max-width:900px) {
 .lby-page { height:auto; min-height:100dvh; overflow:auto; }
 .lby-page .lby-hdr { position:relative!important; height:auto; padding:18px 20px!important; gap:15px; flex-wrap:wrap; align-items:center; background:linear-gradient(#0a0c13d9,#0a0c1366); }
 .lby-hdr-l { gap:12px; }
 .lby-brand,.lby-page .lby-logo { width:54px; height:47px; }
 .lby-page .lby-profile { min-width:0; padding:5px 12px; gap:9px; }
 .lby-page .lby-profile-info strong { font-size:20px; }
 .lby-profile-avatar-frame { flex-basis:35px; width:35px; height:35px; }
 .lby-hdr-r { margin:0; padding:0; width:100%; }
 .lby-page .lby-res-bar { width:100%; display:grid; grid-template-columns:repeat(4,1fr); gap:6px; overflow:visible; }
 .lby-page .lby-res { min-width:0; padding:8px; grid-template-columns:18px auto; gap:3px 6px; }
 .lby-page .lby-res-val { font-size:17px; }
 .lby-page .lby-res-ico-img { width:18px; height:18px; }
 .lby-res small { font-size:7px; }
 .lby-page .lby-bg { position:fixed; height:100dvh; }
 .lby-page .lby-bg-active { opacity:.88; }
 .lby-page .lby-vignette { position:fixed; background:linear-gradient(#0b0d1430,#0b0d14a6 50%,#0b0d14de); }
 .lby-page .lby-main { height:auto; min-height:0; display:flex; flex-direction:column; gap:25px; padding:140px 20px 25px!important; overflow:visible!important; }
 .lby-page .lby-util { position:absolute; right:20px; top:8px; gap:8px; }
 .lby-page .lby-u { width:36px; height:36px; }
 .lby-page .lby-right { order:1; position:relative; inset:auto; width:100%; max-width:600px; margin-left:auto; gap:10px; }
 .lby-page .lby-left { order:2; position:relative; inset:auto; width:100%; max-width:600px; gap:12px; }
 .lby-battle { height:150px; }
 .lby-battle strong { font-size:58px; }
 .lby-page .lby-fp { height:155px; }
 .lby-page .lby-news-list { max-height:150px; }
 .lby-quick strong { font-size:14px; }
 .lby-footer { order:3; position:relative; inset:auto; display:flex; flex-direction:column-reverse; align-items:stretch; gap:24px; }
 .lby-dock { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
 .lby-dock a { min-width:0; padding:13px 11px; }
 .lby-dock strong { font-size:15px; }
 .lby-footer-brand { font-size:10px; text-align:center; }
}
@media(prefers-reduced-motion:reduce) { .lby-page *, .lby-page *::before, .lby-page *::after { transition:none!important; animation:none!important; } }
@media(min-width:901px) and (max-height:649px) { .lby-page { height:auto; overflow-y:auto; } }
