#vqcAnnotationToolbar [data-vqc-annotation-toggle]{display:none!important}

.vqc-mobile-nav,.vqc-mobile-sheet,#vqcMobileLessonsShortcut{display:none}
.vqc-mobile-sheet[hidden]{display:none!important}

@media (max-width:760px){
 html{scroll-padding-top:12px}
 html,body{max-width:100%;overflow-x:clip}
 body.vqc-mobile-logged-in{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
 body.vqc-mobile-sheet-open{overflow:hidden!important}

 body.vqc-mobile-logged-in > .header{
   position:relative!important;top:auto!important;z-index:40!important;
   display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;
   align-items:center!important;gap:8px!important;
   height:auto!important;min-height:64px!important;
   width:100%!important;padding:9px 12px!important;
 }
 body.vqc-mobile-logged-in > .header > .logo{
   display:flex!important;align-items:center!important;gap:9px!important;
   flex:1 1 100%!important;min-width:0!important;margin:0!important;order:0!important;
 }
 body.vqc-mobile-logged-in > .header .logo-icon{
   width:43px!important;height:43px!important;flex:0 0 43px!important;
   border-radius:13px!important;font-size:27px!important;
 }
 body.vqc-mobile-logged-in > .header .logo-text{display:flex!important;flex-direction:column!important;min-width:0!important}
 body.vqc-mobile-logged-in > .header .logo-text strong{font-size:18px!important;line-height:1.2!important}
 body.vqc-mobile-logged-in > .header .logo-text span{display:block!important;font-size:11px!important}
 body.vqc-mobile-logged-in > .header #accountBar,
 body.vqc-mobile-logged-in > .header #vqcBackHome,
 body.vqc-mobile-logged-in > .header .vqc-appearance-open{display:none!important}

 body.vqc-mobile-logged-in.vqc-mode-class > .header .room-box{
   order:2!important;display:flex!important;flex:1 1 100%!important;
   width:100%!important;min-width:0!important;max-width:100%!important;
   margin:0!important;padding:8px!important;justify-content:center!important;
   flex-wrap:wrap!important;gap:6px!important;border-radius:13px!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-class > .header .room-box span{display:none!important}
 body.vqc-mobile-logged-in.vqc-mode-class > .header .room-box input{
   width:95px!important;max-width:125px!important;min-width:80px!important;
   flex:1 1 85px!important;height:43px!important;padding:8px!important;font-size:16px!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-class > .header .room-box button{
   flex:0 1 auto!important;min-height:43px!important;margin:0!important;
   padding:8px 10px!important;font-size:13px!important;white-space:nowrap!important;
 }
 body.vqc-mobile-logged-in:is(.vqc-mode-home,.vqc-mode-world) > .header .room-box{display:none!important}

 body.vqc-mobile-logged-in > .vqc-mobile-nav{
   display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
   position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;
   z-index:7000!important;visibility:visible!important;opacity:1!important;transform:none!important;
   gap:2px!important;padding:5px 4px calc(6px + env(safe-area-inset-bottom,0px))!important;
   background:#ffffff!important;border-top:1px solid #d2e2f2!important;
   box-shadow:0 -3px 16px rgba(35,75,120,.15)!important;
 }
 .vqc-mobile-nav > button{
   position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
   gap:3px;min-width:0;min-height:53px;padding:5px 2px;
   appearance:none;border:0;border-radius:11px;background:transparent;color:#45637d;
   font:700 10px/1.15 Arial,sans-serif;white-space:nowrap;cursor:pointer;
 }
 .vqc-mobile-icon{font-size:20px;line-height:1.1}
 .vqc-mobile-nav > button[aria-current="page"],
 .vqc-mobile-nav > button[aria-expanded="true"]{background:#e5f1ff;color:#1767ab}
 .vqc-mobile-nav button:focus-visible{outline:2px solid #2b7cbe;outline-offset:1px}
 .vqc-mobile-unread{
   position:absolute;right:17%;top:3px;width:8px;height:8px;
   background:#f05b66;border-radius:50%;display:none;
 }
 body:has(#vqcFriendsUnread:not([hidden])) .vqc-mobile-unread{display:block}

 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome{
   width:calc(100% - 20px)!important;max-width:560px!important;
   margin:13px auto 22px!important;padding:15px 12px 16px!important;border-radius:20px!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-head{
   margin:0 0 13px!important;padding:2px 1px!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-symbol,
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-head h1{display:none!important}
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-head p{
   margin:0!important;font-size:14px!important;line-height:1.45!important;
   font-weight:650!important;color:#336f9c!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-grid{
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-card{
   display:flex!important;flex-direction:column!important;gap:7px!important;
   width:100%!important;min-height:0!important;padding:15px!important;border-radius:17px!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-emoji{font-size:30px!important;line-height:1.1!important}
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-card h2{font-size:21px!important;margin:0!important}
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-card p{
   font-size:13px!important;line-height:1.45!important;min-height:0!important;margin:0!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-caption{
   font-size:11px!important;line-height:1.35!important;min-height:0!important;margin:0!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-card .btn{
   margin:7px 0 0!important;min-height:46px!important;width:100%!important;
   padding:10px!important;font-size:15px!important;border-radius:12px!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-home #vqcModeHome .vqc-entry-note{
   margin:12px 2px 0!important;font-size:12px!important;line-height:1.4!important;
 }

 body.vqc-mobile-logged-in .vqc-entry{max-width:100%!important}
 body.vqc-mobile-logged-in.vqc-mode-class .app{
   width:100%!important;max-width:560px!important;min-width:0!important;
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   padding:0 9px!important;margin:12px auto 20px!important;gap:12px!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-class .app .sidebar{display:none!important}
 body.vqc-mobile-logged-in.vqc-mode-class .app .center{min-width:0!important;width:100%!important;order:0!important}
 body.vqc-mobile-logged-in.vqc-mode-class .app > aside.card:not(.sidebar){min-width:0!important;max-width:100%!important;order:1!important}
 body.vqc-mobile-logged-in.vqc-mode-class .board-shell{
   padding:5px!important;border-width:2px!important;border-radius:13px!important;max-width:100%!important;
 }
 body.vqc-mobile-logged-in.vqc-mode-class .board{
   width:100%!important;max-width:100%!important;aspect-ratio:1!important;touch-action:manipulation;
 }
 body.vqc-mobile-logged-in.vqc-mode-class .square{min-width:0!important;min-height:0!important}
 body.vqc-mobile-logged-in .room-box input,
 body.vqc-mobile-logged-in .account-modal input,
 body.vqc-mobile-logged-in .account-modal select{font-size:16px!important}

 #vqcMobileLessonsShortcut{display:none}
 body.vqc-mobile-logged-in.vqc-mode-class #vqcMobileLessonsShortcut{
   display:block!important;width:100%!important;min-height:47px!important;
   margin:0 0 10px!important;border:1px solid #91c8f0;border-radius:12px;
   background:#e4f3ff;color:#205b8f;font-size:15px;font-weight:800;
   box-shadow:0 3px 0 #badff5;cursor:pointer;
 }

 .vqc-mobile-sheet:not([hidden]){display:block!important;position:fixed;inset:0;z-index:7500}
 .vqc-mobile-sheet__scrim{position:absolute;inset:0;background:rgba(12,32,57,.65)}
 .vqc-mobile-sheet__panel{
   position:absolute;bottom:0;left:0;right:0;
   display:flex;flex-direction:column;max-height:min(88dvh,900px);
   background:linear-gradient(180deg,#f8fcff,#eff7ff);
   border-radius:20px 20px 0 0;overflow:hidden;
   box-shadow:0 -10px 40px #0925454d;padding-bottom:env(safe-area-inset-bottom,0px);
 }
 .vqc-mobile-sheet__head{
   flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:9px;
   padding:13px 15px;border-bottom:1px solid #d5e7f3;background:white;
 }
 .vqc-mobile-sheet__head h2{font-size:19px!important;line-height:1.2;margin:0;color:#214e79}
 .vqc-mobile-sheet__head button{width:44px;height:44px;border:0;border-radius:12px;background:#e8f2fb;font-size:22px;color:#325d7c}
 .vqc-mobile-sheet__content{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px 14px 24px}
 .vqc-mobile-sheet__content h3{margin:14px 0 7px;color:#3d6484;font-size:13px;text-transform:uppercase;letter-spacing:.03em}
 .vqc-mobile-sheet__content h3:first-child{margin-top:0}
 .vqc-mobile-sheet__action{
   display:flex;align-items:center;gap:10px;width:100%;min-height:49px;padding:9px 12px;
   text-align:left;border:1px solid #d6e7f4;border-radius:12px;background:white;
   font:700 14px/1.3 Arial,sans-serif;color:#244b6f;margin-bottom:8px;cursor:pointer;
 }
 .vqc-mobile-sheet__action.is-active{background:#e7f2ff;border-color:#8fc1e7}
 .vqc-mobile-sheet__icon{width:26px;flex-shrink:0;font-size:22px;text-align:center}

 .capture-overlay,.defense-overlay,.checkone-overlay,.escape-overlay,.freecapture-overlay,
 .mate-overlay,.mate3-overlay{padding:4px!important;align-items:center!important}
 .capture-dialog,.defense-dialog,.checkone-dialog,.escape-dialog,.freecapture-dialog,
 .mate-dialog,.mate3-dialog{
   width:100%!important;max-width:100%!important;max-height:calc(100dvh - 8px)!important;
   padding:9px!important;overflow-y:auto!important;overscroll-behavior:contain!important;
   border-radius:14px!important;-webkit-overflow-scrolling:touch;
 }
 .capture-layout,.defense-layout,.checkone-layout,.escape-layout,.freecapture-layout,
 .mate-layout,.mate3-layout{
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   gap:9px!important;align-items:start!important;
 }
 .capture-board,.defense-board,.checkone-board,.escape-board,.freecapture-board,
 .mate-board,.mate3-board{
   width:min(100%,47dvh)!important;max-width:100%!important;height:auto!important;
   aspect-ratio:1!important;margin:0 auto!important;
 }
 .capture-side,.defense-side,.checkone-side,.escape-side,.freecapture-side,
 .mate-side,.mate3-side{width:100%!important;min-width:0!important}
 .mate-top{
   position:sticky!important;top:0!important;z-index:6!important;
   padding:9px!important;margin:0!important;border-radius:10px!important;
   background:#f3faff!important;
 }
 .mate-top strong{font-size:14px!important}
 .mate-top button{min-height:38px!important}
 .vqc-mobile-steps{
   position:sticky;top:53px;z-index:5;display:grid;
   grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;
   margin:0 0 9px;padding:7px 1px;
   background:#fff;border-bottom:1px solid #dcebf4;
 }
 .vqc-mobile-steps button{
   min-height:42px;min-width:0;padding:7px 4px;border:1px solid #b1d5ef;
   border-radius:10px;background:#e8f4ff;color:#22567f;
   font-size:12px;font-weight:800;white-space:nowrap;
 }

 .account-overlay{padding:8px!important}
 .account-modal{width:min(100%,530px)!important;max-height:calc(100dvh - 16px)!important;overflow-y:auto!important}
}

@media (max-width:365px){
 .vqc-mobile-nav > button{font-size:9px;padding:4px 0}
 .vqc-mobile-icon{font-size:19px}
 body.vqc-mobile-logged-in.vqc-mode-class > .header .room-box button{font-size:12px!important}
 .vqc-mobile-steps button{font-size:11px}
}

@media (max-width:760px) {
  body.vqc-mobile-logged-in #vqcInviteBell {
    display:none!important;
  }
  body.vqc-mobile-logged-in:has(#vqcInviteCount:not([hidden]))
     > .vqc-mobile-nav [data-vqc-mobile="more"]::after {
    content:"";
    position:absolute;
    width:9px;height:9px;top:5px;right:17%;
    background:#e54858;border:2px solid #fff;border-radius:50%;
  }
  body.vqc-mobile-logged-in .vqc-invite-panel {
    bottom:calc(81px + env(safe-area-inset-bottom,0px))!important;
    max-height:min(65dvh,520px)!important;
    right:9px!important;
    left:9px!important;
    width:auto!important;
  }

  body.vqc-mobile-logged-in #vqcAnnotationToolbar {
    position:fixed!important;
    bottom:calc(83px + env(safe-area-inset-bottom,0px))!important;
    right:10px!important;left:auto!important;
    z-index:7050!important;
    width:auto!important;max-width:calc(100vw - 20px)!important;
    padding:5px!important;gap:5px!important;
    border-radius:14px!important;
    box-shadow:0 4px 15px rgba(30,70,105,.26)!important;
  }
  body.vqc-mobile-logged-in #vqcAnnotationToolbar button {
    padding:7px 8px!important;
    min-width:42px!important;
    min-height:42px!important;
    font-size:12px!important;
  }
  body.vqc-mobile-logged-in #vqcAnnotationToolbar
      [data-vqc-annotation-toggle] {
    display:flex!important;
    min-width:42px!important;
    font-size:20px!important;
    background:#eaf5ff!important;
  }
  body.vqc-mobile-logged-in #vqcAnnotationToolbar:not(.vqc-mobile-annotation-expanded)
      [data-action="draw"],
  body.vqc-mobile-logged-in #vqcAnnotationToolbar:not(.vqc-mobile-annotation-expanded)
      [data-action="clear"],
  body.vqc-mobile-logged-in #vqcAnnotationToolbar .vqc-annotation-hint {
    display:none!important;
  }
  body.vqc-mobile-logged-in #vqcAnnotationToolbar:has([data-action="draw"].is-active)
      [data-vqc-annotation-toggle] {
    background:#d8f7e2!important;
    border-color:#67bb85!important;
  }
  body.vqc-mobile-logged-in .vqc-coin-toast,
  body.vqc-mobile-logged-in .vqc-reward-toast {
    bottom:calc(85px + env(safe-area-inset-bottom,0px))!important;
  }
}
