/* The entry page of the site (Noh 2026-11-21 02:05 - 02:08: "คนเข้าหน้าแรก ... มีให้เลือกว่า เข้าเกม กับ Enter Site", "ทุกครั้งที่
   กดเข้าเวป แล้วขึ้นหน้านี้ตลอด"): the server's key art, "เข้าเกม" and "เข้าเว็บไซต์" over the game's page; shown only while
   <html> has the class mg-landing (index.html's first script: not on a return / the app / an iframe / a sign-in's return) */
#landing { display: none; }
html.mg-landing #landing { display: flex; }
html.mg-landing body > :not(#landing) { visibility: hidden; }
html.mg-landing, html.mg-landing body { background: #120d1f; overflow: hidden; }
#landing { position: fixed; inset: 0; z-index: 2147483000; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden; background: #120d1f; font-family: 'Kanit', 'Leelawadee UI', Tahoma, sans-serif; color: #fff; }
#landing .ld-art { position: absolute; inset: 0; background: url(../img/gieno-bg.jpg) center 30% / cover no-repeat; }
#landing .ld-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18, 13, 31, 0) 45%, rgba(18, 13, 31, 0.55) 70%, rgba(18, 13, 31, 0.92) 100%); }
#landing .ld-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 24px 9vh; width: 100%; box-sizing: border-box; }
#landing .ld-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: min(360px, 100%); border-radius: 999px; text-decoration: none; font-weight: 600; cursor: pointer; border: 0; font-family: inherit; transition: transform 0.12s, box-shadow 0.12s, background 0.12s; -webkit-tap-highlight-color: transparent; }
#landing .ld-play { height: 64px; font-size: 24px; color: #4a2600; background: linear-gradient(#ffe7a3, #f5b941 55%, #e69a1f); box-shadow: 0 0 0 2px rgba(255, 236, 170, 0.65) inset, 0 10px 28px rgba(230, 150, 30, 0.45), 0 0 40px rgba(255, 200, 90, 0.25); }
#landing .ld-play:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(255, 236, 170, 0.8) inset, 0 14px 34px rgba(230, 150, 30, 0.55), 0 0 56px rgba(255, 200, 90, 0.35); }
#landing .ld-play:active { transform: translateY(1px); }
#landing .ld-site { height: 50px; font-size: 18px; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#landing .ld-site:hover { background: rgba(255, 255, 255, 0.16); }
#landing .ld-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#landing .ld-links { position: relative; z-index: 1; display: flex; gap: 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); font-size: 14px; }
#landing .ld-links a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
#landing .ld-links a:hover { color: #fff; }
@media (max-width: 600px) {
	#landing .ld-art { bottom: auto; height: 74vh; background-position: 50% 0; background-size: auto 100%; -webkit-mask-image: linear-gradient(#000 62%, transparent 100%); mask-image: linear-gradient(#000 62%, transparent 100%); }
	#landing .ld-art::after { display: none; }
	#landing .ld-actions { padding-bottom: 6vh; }
}
/* (a phone on its side: the buttons beside the bottom, the art over the whole screen) */
@media (max-height: 480px) and (orientation: landscape) { #landing .ld-actions { flex-direction: row; justify-content: center; padding-bottom: 5vh; } #landing .ld-btn { width: 240px; } #landing .ld-play { height: 54px; font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { #landing .ld-btn { transition: none; } }
