
/* OS Tin Canny Fullscreen (Safe) v1.0.3 */
:root { --os-tc-vvh: 1vh; }

#os-tc-fs-btn{
  position: fixed;
  z-index: 2147483646;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  background: #111;
  color: #fff;
  font: 600 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .2px;
  user-select: none;
}
#os-tc-fs-btn:active { transform: translateY(1px); }

#os-tc-fs-btn.os-pos-br{
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
}
#os-tc-fs-btn.os-pos-bl{
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
}
#os-tc-fs-btn.os-pos-tr{
  right: max(12px, env(safe-area-inset-right));
  top: max(12px, env(safe-area-inset-top));
}
#os-tc-fs-btn.os-pos-tl{
  left: max(12px, env(safe-area-inset-left));
  top: max(12px, env(safe-area-inset-top));
}

#os-tc-fs-overlay{
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: #000;
  display: none;
}
#os-tc-fs-overlay.os-open{ display: block; }

#os-tc-fs-framewrap{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--os-tc-vvh) * 100);
  width: 100%;
  overflow: hidden;
  background: #000;
}

#os-tc-fs-close{
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 2;
  padding: 10px 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(20,20,20,.75);
  color: #fff;
  font: 700 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  backdrop-filter: blur(6px);
  user-select: none;
}

html.os-tc-fs-lock, body.os-tc-fs-lock{
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none;
}
