/* KMoto Theme Toggle */
/* 1) Global light-mode via invert (works across unknown themes) */
html.kmtt-light {
  filter: invert(1) hue-rotate(180deg);
}
/* Re-invert media so images/videos/logos look normal */
html.kmtt-light img,
html.kmtt-light video,
html.kmtt-light iframe,
html.kmtt-light canvas,
html.kmtt-light picture,
html.kmtt-light svg {
  filter: invert(1) hue-rotate(180deg);
}

/* Ensure our toggle button isn't inverted in light mode */
html.kmtt-light #kmtt-toggle,
html.kmtt-light #kmtt-toggle * {
  filter: invert(1) hue-rotate(180deg);
}

/* 2) Floating 50×50 circle button (bottom-right) */
#kmtt-toggle{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(13,20,32,.85);        /* dark glass */
  color: #f5f5f5;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor: pointer;
  z-index: 99999;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
#kmtt-toggle:hover{ transform: translateY(-1px); box-shadow:0 14px 36px rgba(0,0,0,.45); }
#kmtt-toggle:active{ transform: translateY(0); }

/* When in light mode, make the button lighter so it matches */
html.kmtt-light #kmtt-toggle{
  background: rgba(247,247,247,.9);
  color: #0e1525;
  border-color: rgba(0,0,0,.08);
}

.kmtt-icon{ font-size: 22px; line-height: 1; }
