/* 코인랜드 타운 — 모바일/앱 HUD (≤760px 또는 ?app=1)
   상단: 로고 + 정보방 / 미션 칩 1줄(가로 스크롤) · 하단: 조이스틱 + 행동 버튼 + 탭(지도 · 수다 · 인증샷 · 메뉴) */
@media (max-width:760px){
  body.dark #top{height:auto;flex-wrap:wrap;padding:8px 10px 6px;gap:6px;border-bottom:1px solid #1f2838}
  body.dark #clLogo{order:0;border-right:0;padding-right:0}body.dark #clLogo .ln b{font-size:15px}
  body.dark #top .right{order:1;margin-left:auto;gap:6px}
  body.dark #top .right>*:not(#bClub):not(#bSite){display:none!important}
  #bSite{height:32px!important;padding:0 10px!important;font-size:12px!important}#bSite span{display:none}#bSite::before{content:"메인"}
  body.dark #top .btn.kk{height:32px;padding:0 10px;font-size:12px}
  body.dark #top .menu{order:2;flex:0 0 100%;overflow-x:auto;scrollbar-width:none;gap:6px;justify-content:flex-start}
  body.dark #top .menu::-webkit-scrollbar{display:none}
  .menu .mg{flex:none}.menu .mg.sub{display:flex!important;padding-left:6px}
  body.dark #top .menu .mg.main .mi{flex:none;font-size:12.5px;padding:7px 10px}
  .menu .mg.sub .mi{font-size:12px!important;padding:7px 8px!important;color:#c9d0de!important;background:#171f30!important;border-radius:9px}
  #ticker{top:auto!important;position:fixed;bottom:calc(64px + env(safe-area-inset-bottom));height:24px!important;font-size:11px!important;z-index:7!important}
  #tickerIn{line-height:24px!important}
  body.dark #side{display:none}body.dark #side.mopen{display:block;top:96px;left:10px;right:10px;width:auto;max-height:56vh;z-index:20}
  body.dark #chat{display:none}body.dark #chat.mopen{display:flex;flex-direction:column;left:10px;right:10px;width:auto;bottom:calc(96px + env(safe-area-inset-bottom));z-index:20}
  body.dark #chat.mopen #chatlist{height:28vh}
  #hint,#clQuick,#kkFloat{display:none!important}
  #act{bottom:calc(150px + env(safe-area-inset-bottom))!important}
  #act button{font-size:14px;padding:12px 16px}
  body.dark #roomBar,body.dark #svcBar{top:100px!important;left:10px;right:10px;width:auto}
  body.dark #toasts{top:104px!important}
  body.dark .mbox{width:100%!important;max-width:100%!important;max-height:86vh;border-radius:20px 20px 0 0!important;position:fixed;bottom:0;left:0;right:0}
  body.dark #modal{align-items:flex-end!important;padding:0!important}
  .shw{grid-template-columns:1fr!important}.shw canvas{max-width:280px;margin:0 auto}
  .sheet{max-height:92vh}
  #species{grid-template-columns:repeat(4,1fr)!important}
  .labels .nick,#labels .lab .nick{font-size:10px}
}
/* 하단 모바일 탭 + 조이스틱 */
#mNav,#joy{display:none}
@media (max-width:760px){
  #mNav{display:flex;position:fixed;left:0;right:0;bottom:0;height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:rgba(11,15,23,.97);border-top:1px solid #1f2838;z-index:8}
  #mNav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#9aa3b8;font-size:11px;font-weight:800;border:0;background:none}
  #mNav button i{font-style:normal;font-size:19px;line-height:1}
  #mNav button.on{color:#22d17a}
  #mNav .kk{color:#FEE500}
  #joy{display:block;position:fixed;left:18px;bottom:calc(104px + env(safe-area-inset-bottom));width:112px;height:112px;border-radius:50%;background:rgba(255,255,255,.08);border:2px solid rgba(255,255,255,.18);z-index:7;touch-action:none}
  #joy b{position:absolute;left:50%;top:50%;width:48px;height:48px;margin:-24px 0 0 -24px;border-radius:50%;background:rgba(34,209,122,.85);box-shadow:0 4px 14px rgba(0,0,0,.4)}
}
