/* BappaTutions frame — the branding that travels with every standalone activity.
   Kept dependency-free and self-contained so a teacher can copy the folder onto a
   classroom laptop, open index.html with no internet, and still see whose work it is. */

.bt-frame {
  --bt-saffron: #FF9933;
  --bt-gold: #FFD54F;
  --bt-teal: #00897B;
  --bt-purple: #7E57C2;
  --bt-rose: #EC407A;
  --bt-sky: #4FC3F7;
  --bt-ink: #2B2118;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(90deg, var(--bt-saffron), var(--bt-gold));
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.18);
  font-family: "Fredoka", "Baloo 2", "Segoe UI", system-ui, sans-serif;
  color: var(--bt-ink);
  pointer-events: auto;
}

.bt-frame__mark { height: 30px; width: auto; flex: none; display: block; }
.bt-frame__spacer { flex: 1 1 auto; }

.bt-frame__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
  color: var(--bt-ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.bt-frame__link:hover { background: #fff; }

/* Push the page content down so the bar never covers the activity. */
body.bt-framed { padding-top: 44px; }

/* Minimal mode: a corner watermark instead of a bar. For presentations and
   full-bleed demos where a strip across the top would wreck the layout. */
.bt-frame--minimal {
  top: auto;
  bottom: 10px;
  left: auto;
  right: 10px;
  border-radius: 999px;
  padding: 0.25rem 0.7rem 0.25rem 0.35rem;
  opacity: 0.92;
}
.bt-frame--minimal .bt-frame__spacer { display: none; }
body.bt-framed--minimal { padding-top: 0; }

@media (max-width: 480px) {
  .bt-frame__mark { height: 24px; }
  .bt-frame__link { font-size: 0.72rem; padding: 0.2rem 0.45rem; }
}

@media print {
  .bt-frame { position: static; box-shadow: none; }
  body.bt-framed { padding-top: 0; }
}
