/* Main Lobby — CSS ชุดเดิม (ปรับ body → .lobby-page) + guide / toast / overlay / vignette */ * { box-sizing: border-box; } html { min-height: 100%; -webkit-text-size-adjust: 100%; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } body.lobby-page { margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; font-family: 'Kanit', 'Sarabun', 'Segoe UI', system-ui, sans-serif; color: #fff; -webkit-tap-highlight-color: transparent; } /* ปุ่มที่กดง่ายบนมือถือ */ @media (hover: none) and (pointer: coarse) { .lobby-btn-cloth, .lobby-btn-start, .lobby-btn-quiz, .lobby-btn-daily, .lobby-btn-tutorial, .lobby-btn-profile, .lobby-btn-ai-chat { min-height: 44px; min-width: 44px; } } /* ---- vignette (เสริม) ---- */ .lobby-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 85% 75% at 50% 48%, transparent 0%, rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.45) 100%); } /* ---- พื้นหลัง ---- */ .lobby-bg { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; overflow: hidden; } .lobby-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; } /* ---- ชั้น UI ทั้งหมด ---- */ .lobby-ui { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); } /* ---- Header ---- */ .lobby-header { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0.5rem clamp(1rem, 4vw, 2rem); padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem); align-items: start; flex-shrink: 0; position: relative; z-index: 6; } @media (min-width: 768px) { .lobby-header { grid-template-columns: 1fr min(320px, 28vw); padding-right: 24px; } .lobby-news-wrap { width: 100%; max-width: 320px; } .lobby-btn-daily { margin-left: auto; } .lobby-footer { padding-right: 24px; } } @media (min-width: 1200px) { .lobby-header { grid-template-columns: 1fr 320px; } } @media (max-width: 767px) { .lobby-header { grid-template-columns: 1fr auto; padding-right: clamp(1rem, 4vw, 2rem); } .lobby-news-wrap { max-width: min(320px, 28vw); } .lobby-btn-daily { max-width: min(200px, 18vw); width: auto; } .lobby-footer { padding-right: clamp(1rem, 4vw, 2rem); } } .lobby-profile-panel { grid-column: 1; grid-row: 1; } .lobby-news-wrap { grid-column: 2; grid-row: 1; } .lobby-header-row2-left { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 0.5rem; } .lobby-btn-daily { grid-column: 2; grid-row: 2; } .lobby-btn-help { z-index: 10; width: 40px; height: 40px; border: none; border-radius: 8px; background: rgba(0, 180, 220, 0.25); color: #00d4ff; font-size: 1.25rem; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 12px rgba(0, 212, 255, 0.4); } .lobby-btn-help:hover { background: rgba(0, 180, 220, 0.4); } .lobby-profile-panel { position: relative; flex-shrink: 0; width: fit-content; max-width: 280px; } .lobby-profile-bg { display: block; width: 100%; max-width: 280px; height: auto; object-fit: contain; vertical-align: top; } .lobby-profile-inner { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: clamp(0.25rem, 1.5vw, 0.5rem); padding: 10% 12%; box-sizing: border-box; } .lobby-avatar-wrap { width: 24%; max-width: 48px; flex-shrink: 0; aspect-ratio: 1; max-height: 70%; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 4px; } .lobby-avatar-mask { width: 151%; height: 212%; /* object-fit: cover; */ /* object-position: center; */ transform: translate(0px, 16px); display: block; } /* Tablet / touch: โฟกัสเท้าเหมือนตัวกลาง ลดการยืดแปลกจาก % สูงเกินจอ */ @media (max-width: 1024px) { .lobby-avatar-wrap { max-width: 56px; max-height: 56px; } .lobby-avatar-mask { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: center bottom; transform: translate(0, 2px); -webkit-touch-callout: none; } } .lobby-profile-info { flex: 1; min-width: 0; overflow: hidden; } .lobby-profile-name { margin: 0 0 0.1em; font-size: clamp(0.85rem, 1.5vw, 1.15rem); font-weight: bold; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lobby-profile-meta { margin: 0; font-size: clamp(0.55rem, 0.9vw, 0.65rem); color: #e040a0; line-height: 1.3; } .lobby-profile-coins { margin: 0.2em 0 0; font-size: clamp(0.55rem, 0.9vw, 0.65rem); color: #ffc107; display: flex; align-items: center; gap: 0.25em; line-height: 1.3; } .lobby-coin-icon { width: 1em; height: 1em; object-fit: contain; } .lobby-news-wrap { position: relative; max-width: 320px; width: 320px; justify-self: end; display: block; } .lobby-news-bg { display: block; width: 100%; height: auto; object-fit: contain; vertical-align: top; } .lobby-news-img { position: absolute; left: 0; right: 0; top: 0; width: 100%; min-width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: top center; transform: translateX(5.5%); } .lobby-btn-daily { position: relative; padding: 0; border: none; background: none; cursor: pointer; max-width: 200px; width: 200px; justify-self: end; } .lobby-daily-img { display: block; width: 100%; height: auto; object-fit: contain; max-width: 100%; } .lobby-daily-dot { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: #e53935; } /* ---- กลุ่มตัวละคร + ปุ่มห้องแต่งตัว ---- */ .lobby-character-area { position: absolute; left: 0; right: 0; bottom: 19%; z-index: 3; pointer-events: none; min-height: 50vh; display: flex; align-items: flex-end; justify-content: center; gap: clamp(0.5rem, 2vw, 1.5rem); } .lobby-character-area .lobby-btn-cloth { pointer-events: auto; } .lobby-character-center { position: relative; transform: scale(3) translate(-16px, 0px); transform-origin: center bottom; width: min(160px, 14vw); height: min(142px, 18vh); display: flex; align-items: flex-end; justify-content: center; } .lobby-character-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center bottom; visibility: hidden; } .lobby-character-img.lobby-character-img--visible { visibility: visible; } /* ---- ปุ่มห้องแต่งตัว ---- */ .lobby-center-left { display: flex; align-items: center; align-self: flex-end; margin-bottom: 0.5em; transform: translate(-47px, -104px) scale(1.3); } .lobby-btn-cloth { padding: 0; border: none; background: none; cursor: pointer; max-width: min(90px, 10vw); } .lobby-btn-cloth-img { display: block; width: 100%; height: auto; object-fit: contain; } /* ---- ลีดเดอร์บอร์ด ---- */ .lobby-leaderboard { position: absolute; top: 15em; right: clamp(0.5rem, 2vw, 1.5rem); width: min(320px, 26vw); height: auto; max-height: min(50vh, calc(100vh - 380px)); z-index: 5; overflow: hidden; isolation: isolate; } .lobby-leaderboard-bg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 21em; height: auto; object-fit: contain; object-position: center top; pointer-events: none; z-index: 0; } .lobby-leaderboard-inner { position: relative; z-index: 1; padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 2vw, 1.5rem); padding-top: 12.3vh; max-height: 65vh; overflow: hidden; min-height: fit-content; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; max-width: 100%; box-sizing: border-box; } .lobby-leaderboard-list { list-style: none; margin: 0 auto; margin-top: 0.5rem; padding: 0; width: 100%; max-width: 188px; display: flex; flex-direction: column; gap: 0.65rem; align-self: center; } .lobby-leaderboard-list li { display: flex; align-items: center; gap: 0.5rem; width: 100%; min-width: 0; font-size: clamp(0.7rem, 1.1vw, 0.9rem); color: #fff; min-height: 2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lobby-leaderboard-list li span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .lobby-leaderboard-list li img { width: auto; height: 1.8em; object-fit: contain; flex-shrink: 0; aspect-ratio: auto; } .lobby-leaderboard-list li span:last-child { flex-shrink: 0; margin-left: auto; color: #ffc107; } /* ---- Footer ---- */ .lobby-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem); gap: 1rem; flex-shrink: 0; position: relative; } .lobby-footer-left, .lobby-footer-right { flex-shrink: 0; display: flex; align-items: flex-end; position: relative; z-index: 1; } .lobby-footer-left { max-width: 80px; width: 80px; } .lobby-footer-right { max-width: 80px; width: 80px; } .lobby-btn-tutorial, .lobby-btn-profile, .lobby-btn-ai-chat { padding: 0; border: none; background: none; cursor: pointer; display: block; max-width: 80px; width: 80px; } .lobby-btn-tutorial-img { display: block; width: 80px; height: auto; object-fit: contain; transform: translateX(-14.5%); } .lobby-btn-profile-img, .lobby-btn-ai-chat-img { display: block; width: 100%; height: auto; object-fit: contain; } .lobby-footer-center { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.5rem, 2vw, 1rem); flex: 1; min-width: 0; position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(0.5rem, 2vw, 1rem); z-index: 10; } .lobby-btn-start, .lobby-btn-quiz { padding: 0; border: none; background: none; cursor: pointer; max-width: 200px; } .lobby-btn-start-img, .lobby-btn-quiz-img { display: block; width: 100%; height: auto; object-fit: contain; } /* ========== RESPONSIVE ========== */ @media (min-width: 1920px) { .lobby-profile-panel { max-width: 280px; } .lobby-profile-bg { max-width: 280px; } .lobby-news-wrap { max-width: 320px; } .lobby-btn-daily { max-width: 200px; width: 200px; } .lobby-character-center { transform: scale(3) translate(-18px, 0px); width: 160px; height: 142px; } .lobby-character-area { bottom: 19%; } .lobby-leaderboard { width: 320px; right: 24px; top: 15em; max-height: min(50vh, calc(100vh - 360px)); } .lobby-leaderboard-inner { padding-top: 140px; padding-left: 1.5rem; padding-right: 1.5rem; } .lobby-btn-start, .lobby-btn-quiz { max-width: 200px; } .lobby-footer-left, .lobby-footer-right { max-width: 80px; width: 80px; } .lobby-btn-tutorial, .lobby-btn-profile, .lobby-btn-ai-chat { max-width: 80px; width: 80px; } } @media (min-width: 1200px) and (max-width: 1919px) { .lobby-character-center { transform: scale(2.5) translate(-23px, 0px); width: 140px; height: 124px; } .lobby-center-left { transform: translate(-35px, -75px) scale(1.2); } .lobby-leaderboard-inner { padding-top: 12.3vh; padding-left: 1.25rem; padding-right: 1.25rem; } } @media (max-width: 1199px) { .lobby-header { grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; } .lobby-profile-panel { max-width: 280px; } .lobby-news-wrap { max-width: 320px; width: 320px; } .lobby-character-area { bottom: 22%; min-height: 45vh; } .lobby-character-center { transform: scale(2) translate(-23px, 0px); width: 120px; height: 100px; } .lobby-center-left { margin-bottom: 0.4em; transform: translate(-22px, -48px) scale(1.1); } .lobby-btn-cloth { max-width: 70px; } .lobby-leaderboard { width: min(260px, 32vw); right: 12px; max-height: min(45vh, calc(100vh - 340px)); top: 15em; } .lobby-leaderboard-bg { width: 100%; max-width: 18em; left: 50%; transform: translateX(-50%); } .lobby-leaderboard-inner { padding-top: clamp(3.5rem, 13vh, 12.3vh); padding-left: 1.25rem; padding-right: 1.25rem; display: flex; flex-direction: column; align-items: center; } .lobby-leaderboard-list { width: 100%; max-width: 172px; } .lobby-leaderboard-list li { width: 100%; } .lobby-footer-center { gap: 0.75rem; } .lobby-btn-start, .lobby-btn-quiz { max-width: 200px; } } @media (max-width: 767px) { .lobby-ui { display: flex; flex-direction: column; min-height: 100vh; } .lobby-header { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; padding: 0.5rem 0.75rem; } .lobby-profile-panel { grid-column: 1; grid-row: 1; max-width: 280px; } .lobby-news-wrap { grid-column: 2; grid-row: 1; max-width: 320px; width: 320px; } .lobby-header-row2-left { grid-column: 1; grid-row: 2; } .lobby-btn-daily { grid-column: 2; grid-row: 2; max-width: 200px; width: 200px; } .lobby-profile-name { font-size: 0.85rem; } .lobby-profile-meta, .lobby-profile-coins { font-size: 0.5rem; } .lobby-character-area { position: relative; left: auto; right: auto; bottom: auto; flex: 1; min-height: 140px; } .lobby-character-center { transform: scale(2.5) translate(-13px, -18px); width: 100px; height: 90px; } .lobby-center-left { margin-bottom: 0.35em; transform: translate(-10px, -87px) scale(1); } .lobby-btn-cloth { max-width: 55px; } .lobby-leaderboard { position: absolute; top: 15em; right: clamp(0.5rem, 2vw, 1rem); width: min(280px, 85vw); max-width: 280px; max-height: min(50vh, calc(100vh - 320px)); margin: 0; } .lobby-leaderboard-bg { width: 100%; max-width: 20em; left: 50%; transform: translateX(-50%); } .lobby-leaderboard-inner { padding: clamp(1rem, 2vw, 1.5rem); padding-top: clamp(3rem, 11vh, 12.3vh); padding-left: 1rem; padding-right: 1rem; max-height: min(65vh, 200px); overflow-y: auto; display: flex; flex-direction: column; align-items: center; } .lobby-leaderboard-list { margin: 0 auto; width: 100%; max-width: min(188px, 92%); } .lobby-leaderboard-list li { font-size: 0.75rem; width: 100%; display: flex; align-items: center; gap: 0.5rem; } .lobby-leaderboard-list li span:last-child { flex-shrink: 0; margin-left: auto; color: #ffc107; } .lobby-footer { flex-wrap: wrap; justify-content: center; padding: 0.75rem; } .lobby-footer-left { position: absolute; left: 0.5rem; bottom: 0.75rem; } .lobby-footer-right { position: absolute; right: 0.5rem; bottom: 0.75rem; } .lobby-footer-center { position: relative; left: auto; transform: none; flex: 1 1 100%; margin-top: 0.5rem; padding-top: 0.5rem; } .lobby-btn-start, .lobby-btn-quiz { max-width: 200px; } .lobby-footer-left, .lobby-footer-right { max-width: 80px; width: 80px; } .lobby-btn-tutorial-img { width: 80px; } } @media (max-width: 479px) { .lobby-profile-panel { max-width: min(280px, 42vw); } .lobby-news-wrap { max-width: min(320px, 48vw); width: min(320px, 48vw); } .lobby-btn-daily { max-width: min(200px, 42vw); width: min(200px, 42vw); } .lobby-daily-dot { width: 12px; height: 12px; top: 4px; right: 4px; } .lobby-character-center { transform: scale(3.2) translate(-10px, -12px); width: 80px; height: 70px; } .lobby-center-left { margin-bottom: 0.3em; transform: translate(-30px, -86px) scale(1.5); } .lobby-btn-cloth { max-width: 45px; } .lobby-leaderboard { right: clamp(0.5rem, 2vw, 1rem); width: min(260px, 88vw); max-width: 260px; } .lobby-leaderboard-inner { padding-top: clamp(2.5rem, 9vh, 12.3vh); padding-left: 0.75rem; padding-right: 0.75rem; } .lobby-leaderboard-list { width: 100%; max-width: min(172px, 94%); } .lobby-leaderboard-list li { width: 100%; display: flex; align-items: center; gap: 0.5rem; } .lobby-leaderboard-list li span:last-child { flex-shrink: 0; margin-left: auto; color: #ffc107; } .lobby-btn-start, .lobby-btn-quiz { max-width: min(200px, 44vw); } .lobby-footer-left, .lobby-footer-right { max-width: min(80px, 18vw); width: min(80px, 18vw); } } /* ---- แชท AI (อ้างอิง room-lobby) ---- */ #lobby-ai-chat-panel.lobby-ai-chat-hidden { display: none !important; } #lobby-ai-chat-panel:not(.lobby-ai-chat-hidden) { position: fixed; left: 20px; right: auto; z-index: 20; display: flex; flex-flow: column; box-sizing: border-box; margin: 0; overflow: visible; background: url(/Game/img/chat-msg-bg-alpha.png) center/100% 100% no-repeat; background-color: transparent; border: none; box-shadow: none; border-radius: 12px; padding: 2rem; width: 576px; height: 525px; max-width: calc(100vw - 2.5rem); bottom: 5.5rem; pointer-events: none; } /* พื้นแผงโปร่งไม่ดักคลิก — เปิด/ปิดเฉพาะจากปุ่ม footer + ปิดในแผง */ #lobby-ai-chat-panel:not(.lobby-ai-chat-hidden) .lobby-ai-chat-header, #lobby-ai-chat-panel:not(.lobby-ai-chat-hidden) .lobby-ai-chat-messages, #lobby-ai-chat-panel:not(.lobby-ai-chat-hidden) .lobby-ai-chat-form, #lobby-ai-chat-panel:not(.lobby-ai-chat-hidden) .lobby-ai-chat-admin-link { pointer-events: auto; } #lobby-ai-chat-panel .lobby-ai-chat-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; margin: 0 -2rem 0 -2rem; padding: 0 2rem; min-height: 80px; height: 80px; overflow: visible; background: url(/Game/img/chat-line.png) bottom repeat-x; background-size: 100% 4px; background-color: transparent; } #lobby-ai-chat-panel .lobby-ai-chat-title { display: flex; align-items: flex-end; gap: 0.5rem; line-height: 0; } #lobby-ai-chat-panel .lobby-ai-chat-title > img:first-child { width: 130px; height: 138px; object-fit: cover; margin-top: -38px; margin-left: -8px; flex-shrink: 0; position: relative; z-index: 1; } #lobby-ai-chat-panel .lobby-ai-chat-title-label { height: 78px; width: auto; object-fit: contain; display: block; flex-shrink: 0; margin-bottom: -2px; } #lobby-ai-chat-panel .lobby-ai-chat-close { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: none; border-radius: 8px; background: transparent; cursor: pointer; margin-left: auto; } #lobby-ai-chat-panel .lobby-ai-chat-close img { width: 50px; height: 50px; object-fit: contain; } #lobby-ai-chat-panel .lobby-ai-chat-close:hover { opacity: 0.9; } #lobby-ai-chat-panel .lobby-ai-chat-messages { flex: 1; min-height: 0; height: auto; overflow-y: auto; padding: 0.75rem; font-size: 1.05rem; display: flex; flex-direction: column; gap: 0.5rem; background: none; border: none; } #lobby-ai-chat-panel .lobby-ai-chat-form { display: flex; gap: 0.5rem; align-items: center; padding: 0.6rem 0; flex-shrink: 0; background: none; border: none; } #lobby-ai-chat-panel #lobby-ai-chat-input { flex: 1; min-width: 0; padding: 0.6rem 0.85rem; border-radius: 10px; border: 1px solid rgba(0, 212, 255, 0.25); background: rgba(30, 35, 50, 0.85); color: #c0caf5; font-size: 1.05rem; margin: 0; } #lobby-ai-chat-panel .lobby-ai-chat-send { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex-shrink: 0; padding: 0; border: none; border-radius: 10px; background: transparent; cursor: pointer; } #lobby-ai-chat-panel .lobby-ai-chat-send img { width: 58px; height: 58px; object-fit: contain; } #lobby-ai-chat-panel .lobby-ai-chat-send:hover { opacity: 0.9; } #lobby-ai-chat-panel .lobby-ai-chat-msg { padding: 0.6rem 1rem; border-radius: 12px; max-width: 85%; font-size: 1.05rem; background-size: 100% 100%; background-repeat: no-repeat; background-position: center; } #lobby-ai-chat-panel .lobby-ai-chat-msg-user { align-self: flex-end; text-align: right; background-image: url(/Game/img/chat-bubble-me.png); background-color: rgba(122, 162, 247, 0.9); color: #1a1b26; } #lobby-ai-chat-panel .lobby-ai-chat-msg-ai { align-self: flex-start; text-align: left; background-image: url(/Game/img/chat-bubble-friend.png); background-color: rgba(158, 206, 106, 0.9); color: #1a1b26; } #lobby-ai-chat-panel .lobby-ai-chat-typing { display: flex; align-items: center; gap: 4px; padding: 14px 18px; min-height: 28px; flex-shrink: 0; background-image: url(/Game/img/chat-bubble-friend.png); background-color: rgba(158, 206, 106, 0.9); background-size: 100% 100%; background-repeat: no-repeat; background-position: center; } #lobby-ai-chat-panel .lobby-ai-typing-dot { width: 8px; height: 8px; border-radius: 50%; background: #1a1b26; animation: lobby-ai-typing-bounce 1.4s ease-in-out infinite both; } #lobby-ai-chat-panel .lobby-ai-typing-dot:nth-child(1) { animation-delay: 0s; } #lobby-ai-chat-panel .lobby-ai-typing-dot:nth-child(2) { animation-delay: 0.2s; } #lobby-ai-chat-panel .lobby-ai-typing-dot:nth-child(3) { animation-delay: 0.4s; } @keyframes lobby-ai-typing-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } } #lobby-ai-chat-panel .lobby-ai-chat-admin-link { margin: 0.35rem 0 0 0; font-size: 0.75rem; flex-shrink: 0; } #lobby-ai-chat-panel .lobby-ai-chat-admin-link a { color: #9ece6a; } /* ---- Guide ทีละขั้น — asset /Main-Lobby/IMAGE/guide (guide-01…05, btn-next) ---- */ .lobby-guide-dim { position: fixed; inset: 0; z-index: 21; background: rgba(2, 8, 22, 0.74); pointer-events: auto; -webkit-tap-highlight-color: transparent; } .lobby-guide-dim.hidden { display: none !important; } .lobby-guide-bar { position: fixed; z-index: 22; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom); pointer-events: none; } .lobby-guide-bar--top { top: 0; bottom: auto; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 0; } .lobby-guide-bar:not(.hidden) { pointer-events: none; } /* รูป guide ไม่ดักคลิก — คลิกตกไปที่เลเยอร์มืดด้านล่าง; กดได้เฉพาะปุ่มถัดไป/รับทราบ */ .lobby-guide-bar:not(.hidden) .lobby-guide-img { pointer-events: none; } .lobby-guide-bar:not(.hidden) .lobby-guide-next { pointer-events: auto; } .lobby-guide-frame { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; } .lobby-guide-img { display: block; width: 100%; height: auto; max-height: min(38vh, 320px); object-fit: contain; object-position: bottom center; } .lobby-guide-bar--top .lobby-guide-img { max-height: min(44vh, 400px); object-position: top center; } .lobby-guide-next { position: absolute; right: min(4vw, 24px); bottom: min(3vh, 20px); padding: 0; border: none; background: transparent; cursor: pointer; filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.5)); } .lobby-guide-bar--top .lobby-guide-next { bottom: min(2.5vh, 18px); } .lobby-guide-next img { display: block; height: clamp(36px, 9vw, 48px); width: auto; } .lobby-guide-bar.hidden { display: none !important; } /* เว้นพื้นที่ footer เฉพาะตอนแถบคำแนะนำอยู่ล่าง (ขั้น 1–3) */ body.lobby-guide-active:not(.lobby-guide-top-step) .lobby-footer { padding-bottom: min(42vh, 280px); } @media (max-width: 767px) { body.lobby-guide-active:not(.lobby-guide-top-step) .lobby-footer { padding-bottom: min(48vh, 320px); } } /* ---- Howto overlay ---- */ .lobby-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 6, 18, 0.88); backdrop-filter: blur(8px); } .lobby-overlay.hidden { display: none !important; } .lobby-howto-inner { max-width: min(96vw, 560px); text-align: center; } .lobby-howto-inner > img:first-of-type { max-width: 100%; height: auto; } .lobby-howto-close { margin-top: 12px; } .lobby-icon-btn { padding: 0; border: none; background: transparent; cursor: pointer; } .lobby-howto-close img { max-width: min(88vw, 420px); height: auto; } /* ---- Toast ---- */ .lobby-toast { position: fixed; z-index: 200; left: 50%; bottom: 120px; transform: translateX(-50%); max-width: min(90vw, 360px); padding: 10px 14px; font-size: 0.85rem; text-align: center; color: #ecfeff; background: rgba(15, 23, 42, 0.92); border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; } .lobby-toast.lobby-toast--show { opacity: 1; }