/* Trick or Teach site widget: top strip + corner pill.
   Every class starts with "tot-w-" so nothing clashes with the site's own CSS. */

.tot-w-strip,
.tot-w-pill {
  --tot-night: #1b1030;
  --tot-night-2: #251640;
  --tot-text: #f4f0ff;
  --tot-dim: #b7a9d9;
  --tot-orange: #ff7a00;
  --tot-rank: #b4aaf0;
  box-sizing: border-box;
  font-family: "Fredoka", system-ui, sans-serif;
  line-height: 1.3;
  color: var(--tot-text);
  -webkit-font-smoothing: antialiased;
}
.tot-w-strip *, .tot-w-pill * { box-sizing: border-box; }
.tot-w-title {
  font-family: "Jolly Lodger", "Fredoka", cursive;
  font-weight: 400;
  color: var(--tot-orange);
  letter-spacing: 1px;
  line-height: 1;
}
.tot-w-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--tot-orange);
  color: var(--tot-night) !important;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.tot-w-play:hover { background: #ff8f26; }
.tot-w-play:focus-visible,
.tot-w-x:focus-visible,
.tot-w-pill:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }
.tot-w-x {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tot-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Strip ---------- */
.tot-w-strip {
  position: relative;
  background: var(--tot-night);
  min-height: 52px;
  padding: 4px 64px 4px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.tot-w-strip .tot-w-icon { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.tot-w-strip .tot-w-title { font-size: 32px; }
.tot-w-strip .tot-w-text { font-size: 15px; }
.tot-w-strip .tot-w-text-short { display: none; }
.tot-w-strip .tot-w-copy { display: flex; align-items: center; gap: 16px; }
.tot-w-strip .tot-w-play { height: 34px; padding: 0 16px; font-size: 15px; }
.tot-w-strip .tot-w-x { position: absolute; right: 12px; top: 50%; margin-top: -22px; }
.tot-w-rank { color: var(--tot-rank); font-weight: 600; }
.tot-w-dot { color: #6f5f99; margin: 0 6px; }

/* ---------- Pill ---------- */
.tot-w-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  height: 60px;
  padding: 0 6px 0 7px;
  border-radius: 999px;
  background: var(--tot-night);
  box-shadow: 0 12px 28px rgba(27, 16, 48, 0.35);
  display: flex;
  align-items: center;
  gap: 4px;
}
.tot-w-pill-link { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.tot-w-pill-link:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; border-radius: 999px; }
.tot-w-pill img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid var(--tot-orange);
  object-fit: cover;
  transition: transform .25s ease;
}
.tot-w-pill-link:hover img { transform: rotate(-8deg) scale(1.06); }
.tot-w-pill .tot-w-title { font-size: 30px; }
/* Buefy modals (instant book, auth) set is-clipped on <html>: stay out of their forms */
html.is-clipped .tot-w-pill { display: none; }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .tot-w-strip { justify-content: flex-start; gap: 8px; padding: 6px 0 6px 10px; min-height: 60px; }
  .tot-w-strip .tot-w-icon { width: 36px; height: 36px; }
  .tot-w-strip .tot-w-copy { flex: 1 1 auto; min-width: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
  .tot-w-strip .tot-w-title { font-size: 26px; line-height: .9; }
  .tot-w-strip .tot-w-text-long { display: none; }
  .tot-w-strip .tot-w-text-short { display: block; font-size: 12px; }
  .tot-w-strip .tot-w-play { height: 44px; padding: 0 16px; }
  .tot-w-strip .tot-w-play .tot-w-play-long { display: none; }
  .tot-w-strip .tot-w-x { position: static; margin: 0; }

  /* smaller, quieter pill on phones: still a 44px tap target */
  .tot-w-pill { right: 12px; bottom: 12px; height: 44px; padding: 0 2px 0 4px; gap: 0; box-shadow: 0 6px 16px rgba(27, 16, 48, 0.28); }
  .tot-w-pill-link { gap: 7px; }
  .tot-w-pill img { width: 36px; height: 36px; border-width: 1.5px; }
  .tot-w-pill .tot-w-title { font-size: 21px; letter-spacing: .5px; }
}
.tot-w-play-short { display: none; }
@media (max-width: 640px) {
  .tot-w-strip .tot-w-play .tot-w-play-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .tot-w-pill img { transition: none; }
  .tot-w-pill-link:hover img { transform: none; }
}
