/* Copyright Ayers Electronics Inc. All rights reserved. */
/* demo disclosure strip. */

/* ---- demo disclosure strip (public-watch posture installs only; js/main.js toggles it off session.demo) ----
   Slim and fixed to the viewport top, clear of the HUD's own bottom-anchored band so the two never
   compete for the same pixels. Existing dark-panel tokens only (--panel/--muted/--border-soft/
   --accent) - no new palette for a strip that exists on exactly one kind of install. */
#demoStrip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: var(--type-label);
  line-height: 1.2;
  padding: 0 40px 0 16px;
  min-height: 34px;
  box-sizing: border-box;
  white-space: nowrap; /* room for the close at the right */
}
#demoStrip > * + * {
  margin-left: 10px;
}
/* The first-visit card and the strip never show together. */
body.tip-showing #demoStrip {
  display: none;
}
#demoStrip .strip-long,
#demoStrip .strip-short {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
#demoStrip .strip-short {
  display: none;
}
#demoStripClose {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1;
  cursor: pointer;
}
#demoStripClose:hover,
#demoStripClose:focus {
  background: var(--track);
  color: var(--text);
}
/* The X collapses the strip to the floating mark, remembered per browser (js/demo-chrome.js). */
body.strip-collapsed #demoStrip {
  display: none;
}
/* nowrap: a narrow viewport wraps the sentence onto its own line before it may break "Download
   Magpie" itself - the link is one phrase, sized to still fit under any width this wraps at. */
#demoStrip a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
#demoStrip a:hover,
#demoStrip a:focus {
  text-decoration: underline;
}
/* The demo mark: floating, top right (safe-area aware); at rest the translucent outline of the logo alone, alive on hover/focus. */
#demoMark > * + * {
  margin-left: 8px;
}
#demoMark {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px 0 6px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  background: var(--panel);
  color: var(--text);
  font-size: var(--type-label);
  font-weight: 600;
  border: 1px solid var(--border-soft);
  transition:
    opacity 400ms ease,
    filter 400ms ease,
    background 200ms ease;
}
#demoMark img {
  height: 26px;
  width: 26px;
}
#demoMark .mark-label,
#demoMark .mark-arrow {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition:
    max-width 300ms ease,
    opacity 200ms ease,
    transform 300ms ease;
}
#demoMark.outline {
  opacity: var(--mark-opacity);
  filter: var(--mark-filter);
  background: transparent;
  border-color: transparent;
} /* the logo alone, like a watermark */
#demoMark.alive .mark-label,
#demoMark:hover .mark-label,
#demoMark:focus .mark-label {
  max-width: 140px;
  opacity: 1;
}
#demoMark.alive .mark-arrow,
#demoMark:hover .mark-arrow,
#demoMark:focus .mark-arrow {
  max-width: 16px;
  opacity: 1;
  animation: mark-arrow 900ms ease-in-out infinite;
}
#demoMark:hover,
#demoMark:focus {
  opacity: 1;
  filter: none;
  background: var(--panel);
}
@keyframes mark-arrow {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}
/* Demo bottom bar: frosted dark glass with a hairline on top, the same look the "Coming up next"
   overlay wears. The bar's height is declared HERE and nowhere else - js/main.js reads the
   rendered height into --demo-bar-height, and css/layout.css's one body.demo rule shortens the
   stage by it, so no second copy of the number exists to drift. */
#demoBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  min-height: 32px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  color: var(--muted);
  font-size: var(--type-label);
  background: var(--scrim-soft);
  border-top: 1px solid var(--border-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(1px)) {
  #demoBar {
    background: var(--scrim);
  }
}
/* The watching pill at the LEFT and the version at the RIGHT; the
   status line centred with two real links: the title opens INFO, the channel opens the guide (120).
   Long titles clip inside their own span so the channel never blends into them. */
#demoBarLeft {
  justify-self: start;
  min-width: 1px;
}
#demoBarNow {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  max-width: 60vw;
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
}
#demoBarNow > * + * {
  margin-left: 5px;
}
#demoBarNow .now-word {
  color: var(--muted);
}
/* The links read in the accent colour, never underlined; hover brightens. */
#demoBarNow a {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 0;
}
#demoBarNow a:hover,
#demoBarNow a:focus {
  color: var(--accent-text);
  filter: brightness(1.2);
  text-decoration: none;
}
#demoBarNow .now-title {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 40vw;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
}
#demoBarNow .now-channel {
  flex: none;
  font-weight: 600;
}
#demoBarRight {
  justify-self: end;
  min-width: 1px;
}
#demoVersion {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#demoVersion a {
  color: inherit;
  text-decoration: none;
}
#demoVersion a:hover,
#demoVersion a:focus {
  color: var(--accent-text);
} /* opens the release notes */
