/* Shared home shortcut: the original physics/chemistry/Earth-science house. */
a.home-fab {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  background: rgba(17, 38, 31, .92);
  border: 2px solid #ffe066;
  color: #f6f3ea;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6), 0 0 14px rgba(255, 224, 102, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
a.home-fab svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  flex: none;
  pointer-events: none;
}
a.home-fab:hover,
a.home-fab:focus-visible {
  background: #ffe066;
  color: #11261f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6), 0 0 20px rgba(255, 224, 102, .55);
  transform: translateY(-2px);
}
a.home-fab:active { transform: translateY(0); }
[data-legacy-home-link] { display: none !important; }
/* Keep legacy IDs alive for lesson translation code, but show just one house. */
body.home-nav-added .back-link,
body.home-nav-added .hero a[href="index.html"],
body.home-nav-added .chapter-nav a[href="index.html"] { display: none !important; }
body.home-nav-added > .wrap { padding-top: 76px; }
@media (max-width: 520px) {
  a.home-fab { top: 8px; left: 8px; width: 44px; height: 44px; }
  a.home-fab svg { width: 20px; height: 20px; }
  body.home-nav-added > .wrap { padding-top: 66px; }
}
