/* v699: the gold Begin meditation label was 11.2px uppercase with 0.2em tracking at a
   synthetic 600 weight. It reads small, and in Hindi the tracking split the
   conjunct in ध्यान (the half ध stood alone like a ६). The cause was tracking,
   not a missing font: Noto Sans Devanagari was already in the hi stack, loaded by
   i18n.js at 300/400/500 only. This file:
   1. gives Begin a 22 to 24px, weight 700, untracked, sentence-case label that
      stays on one line at 360px in every language;
   2. adds real bold faces, self-hosted (font-src 'self'), so 700 is not faked:
      Noto Sans Devanagari 700 joins the existing family (any bold Hindi on /sit
      gets the real face), while Outfit 700 and Gurmukhi 700 use their own
      family names and are used only by the buttons below;
   3. drops letter-spacing on /sit buttons for Devanagari, Gurmukhi, Hangul,
      Kana and Han, which do not take tracking;
   4. brings the breath screen's Pause and Let it go labels up from 13px to 18px. */

@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-devanagari-700.woff2?v=699") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
@font-face {
  font-family: "DD Gurmukhi Bold";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-gurmukhi-700.woff2?v=699") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0A01-0A76, U+200C-200D, U+20B9, U+25CC, U+262C, U+A830-A839;
}
@font-face {
  font-family: "DD Outfit Bold";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/outfit-700-latin-ext.woff2?v=699") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DD Outfit Bold";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/outfit-700-latin.woff2?v=699") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Each language keeps its own stack (as in i18n.css), with the bold faces in front. */
html {
  --dd-bold-stack: "DD Outfit Bold", Outfit, system-ui, sans-serif;
  --dd-bold-track: 0.005em;
}
html:is([lang="hi"], [data-lang="hi"]) {
  --dd-bold-stack: "DD Outfit Bold", Outfit, "Noto Sans Devanagari", "Nirmala UI", Mangal, sans-serif;
}
html:is([lang="pa"], [data-lang="pa"]) {
  --dd-bold-stack: "DD Gurmukhi Bold", "Noto Sans Gurmukhi", Raavi, "Nirmala UI", sans-serif;
}
html:is([lang="ja"], [data-lang="ja"]) {
  --dd-bold-stack: "DD Outfit Bold", Outfit, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, "Noto Sans CJK JP", "Noto Sans JP", "Source Han Sans JP", sans-serif;
}
html:is([lang^="zh"], [data-lang^="zh"]) {
  --dd-bold-stack: "DD Outfit Bold", Outfit, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif;
}
html:is([lang="hi"], [data-lang="hi"], [lang="pa"], [data-lang="pa"], [lang="ko"], [data-lang="ko"], [lang="ja"], [data-lang="ja"], [lang^="zh"], [data-lang^="zh"]) {
  --dd-bold-track: 0;
}

/* 1. Begin meditation: about 1.5x larger (11.2px was the old size), bold, one line. */
body.page-sit button#begin-sit.btn {
  font-family: var(--dd-bold-stack);
  font-size: clamp(1.375rem, 5.9vw, 1.5rem); /* 22px at 360, 23px at 390, 24px from 407 */
  font-weight: 700;
  letter-spacing: var(--dd-bold-track);
  text-transform: none;
  line-height: 1.2;
  white-space: nowrap;
  min-height: 3.5rem;
  padding: 0.85rem 0.9rem;
}

/* 3. Scripts that do not take tracking keep their clusters whole on /sit buttons. */
/* v700: every control on /sit and the text inside it (chips, pills, card kickers,
   wallet menu, tab bar, footer links), not only .btn. More specific per-component
   rules set tracking (up to 1.68px on the library card kicker), so this wins with
   !important; it only ever sets tracking to 0, and only for these scripts. */
html:is([data-lang="hi"], [data-lang="pa"], [data-lang="ko"], [data-lang="ja"], [data-lang^="zh"], [lang="hi"], [lang="pa"], [lang="ko"], [lang="ja"], [lang^="zh"]) body.page-sit :is(button, a, [role="button"], .btn, .bs-btn, .sit-howto-link, .phase-switch, .wallet-chip),
html:is([data-lang="hi"], [data-lang="pa"], [data-lang="ko"], [data-lang="ja"], [data-lang^="zh"], [lang="hi"], [lang="pa"], [lang="ko"], [lang="ja"], [lang^="zh"]) body.page-sit :is(button, a, [role="button"], .wallet-chip) * {
  letter-spacing: 0 !important;
}

/* 4. Breath screen buttons: 13px to 18px. Pause (the gold one) is bold like Begin. */
body.page-sit .breath-screen .bs-btn {
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  padding: 0 1.1rem;
}
body.page-sit .breath-screen .bs-btn:not(.bs-btn-quiet) {
  font-family: var(--dd-bold-stack);
  font-weight: 700;
}
html:is([data-lang="hi"], [data-lang="pa"], [data-lang="ko"], [data-lang="ja"], [data-lang^="zh"]) body.page-sit .breath-screen .bs-btn {
  letter-spacing: 0;
}

/* v700: Gurmukhi reads smaller than Devanagari at the same px, so Punjabi gets
   about 10% more: Begin 25px at 360 to 26px from 394px wide; Pause and Let it go 20px. */
html:is([lang="pa"], [data-lang="pa"]) body.page-sit button#begin-sit.btn {
  font-size: clamp(1.5625rem, 6.6vw, 1.625rem);
}
html:is([lang="pa"], [data-lang="pa"]) body.page-sit .breath-screen .bs-btn {
  font-size: 1.25rem;
}

/* v707: Hindi Begin matches Punjabi and then some. At 23px Devanagari read
   smaller than Gurmukhi at 25.7px (ink 119 x 26 vs 149 x 30 at 390), so Hindi
   gets 26px at 360, about 27px at 390 and 28px from 406px wide, real 700. */
html:is([lang="hi"], [data-lang="hi"]) body.page-sit button#begin-sit.btn {
  font-size: clamp(1.625rem, 6.9vw, 1.75rem);
}

/* v707: calm luxury gold on the two start buttons, Begin on the daily card and
   Play in the player, the same in every language. Other gold buttons (Pay with
   DOGE, tips, bell, walk) are unchanged.
   - Metallic gold: bright champagne at the top, warm gold through the middle,
     deep amber at the foot, a thin inner highlight along the top edge, a fine
     darker-gold rim, and a soft warm glow around it.
   - A slow band of light sweeps across about every 7 s (::before; the band moves,
     the button never does). Off under prefers-reduced-motion.
   - Press: a touch smaller and a deeper shade. Hover (mouse only) lifts a hair.
   - The label stays dark (#1a1000): about 10:1 on the gold behind it, 7:1 at
     the deepest point of the pressed state (AA). No bounce, no sparkle. */
body.page-sit :is(button#begin-sit.btn, button#sit-box-play.btn) {
  --lux-top: #fff1c4;
  --lux-hi: #f7d977;
  --lux-mid: #ecbf4f;
  --lux-low: #d99c2b;
  --lux-foot: #b8771a;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #1a1000;
  border: 1px solid #93600f;
  background:
    radial-gradient(130% 80% at 50% -20%, rgba(255, 252, 236, 0.7) 0%, rgba(255, 248, 222, 0.22) 40%, rgba(255, 244, 210, 0) 64%),
    linear-gradient(180deg, var(--lux-top) 0%, var(--lux-hi) 18%, var(--lux-mid) 46%, var(--lux-low) 76%, var(--lux-foot) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 254, 244, 0.95),
    inset 0 0 0 1px rgba(255, 236, 178, 0.28),
    inset 0 -3px 6px -2px rgba(110, 64, 4, 0.38),
    0 0 0 1px rgba(214, 160, 52, 0.22),
    0 0 22px 2px rgba(240, 184, 72, 0.3),
    0 10px 26px -10px rgba(0, 0, 0, 0.65);
  text-shadow: 0 1px 0 rgba(255, 246, 214, 0.4);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease;
  -webkit-tap-highlight-color: transparent;
}
body.page-sit :is(button#begin-sit.btn, button#sit-box-play.btn)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg,
    rgba(255, 252, 238, 0) 38%,
    rgba(255, 250, 230, 0.25) 45%,
    rgba(255, 255, 248, 0.8) 50%,
    rgba(255, 250, 230, 0.25) 55%,
    rgba(255, 252, 238, 0) 62%) no-repeat;
  background-size: 250% 100%;
  background-position: 140% 0;
  animation: dd-lux-sheen 7s cubic-bezier(0.45, 0, 0.3, 1) 1.5s infinite;
}
@keyframes dd-lux-sheen {
  0% { background-position: 140% 0; }
  26% { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}
@media (hover: hover) {
  body.page-sit :is(button#begin-sit.btn, button#sit-box-play.btn):hover {
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 254, 244, 1),
      inset 0 0 0 1px rgba(255, 236, 178, 0.32),
      inset 0 -3px 6px -2px rgba(110, 64, 4, 0.34),
      0 0 0 1px rgba(214, 160, 52, 0.28),
      0 0 28px 3px rgba(240, 184, 72, 0.38),
      0 12px 28px -10px rgba(0, 0, 0, 0.7);
  }
}
body.page-sit :is(button#begin-sit.btn, button#sit-box-play.btn):active {
  --lux-top: #f6e2a6;
  --lux-hi: #ecc55e;
  --lux-mid: #dfac3c;
  --lux-low: #c98a22;
  --lux-foot: #a86a14;
  transform: scale(0.97);
  transition-duration: 0.1s;
  box-shadow:
    inset 0 2px 7px rgba(100, 58, 2, 0.42),
    inset 0 -1px 0 rgba(255, 240, 196, 0.3),
    0 0 0 1px rgba(214, 160, 52, 0.2),
    0 0 14px 1px rgba(240, 184, 72, 0.22),
    0 4px 10px -6px rgba(0, 0, 0, 0.6);
}
body.page-sit :is(button#begin-sit.btn, button#sit-box-play.btn):focus-visible {
  outline: 2px solid #fff1c2;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  body.page-sit :is(button#begin-sit.btn, button#sit-box-play.btn),
  body.page-sit :is(button#begin-sit.btn, button#sit-box-play.btn)::before {
    animation: none;
    transition: none;
  }
  body.page-sit :is(button#begin-sit.btn, button#sit-box-play.btn)::before {
    background-position: 140% 0;
  }
  body.page-sit :is(button#begin-sit.btn, button#sit-box-play.btn):hover,
  body.page-sit :is(button#begin-sit.btn, button#sit-box-play.btn):active {
    transform: none;
  }
}

/* v708: the library Play pill (Play, ਚਲਾਓ, every language) joins the same calm
   luxury gold. Everything stays inside the pill: it clips its own content
   (overflow: hidden, border-radius 999px, isolation), so the sheen and the gold
   dust never leave the pill's shape.
   - ::before: a slow light sheen, about every 8 s.
   - ::after: four tiny specks of gold dust drifting slowly (one transform on one
     layer, so it stays on the compositor), low opacity, no sparkle burst.
   - Motion runs only on pills in view: sit/pill-shine.js toggles .is-lux-on with
     an IntersectionObserver. Off-screen and hidden pills do not animate.
   - Reduced motion: no sheen, no drift; the specks rest, faint.
   The label stays #1a1000 (AA on every stop behind it). */
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px;
  color: #1a1000;
  border: 1px solid #93600f;
  background:
    radial-gradient(130% 90% at 50% -25%, rgba(255, 252, 236, 0.65) 0%, rgba(255, 248, 222, 0.2) 42%, rgba(255, 244, 210, 0) 66%),
    linear-gradient(180deg, #fff1c4 0%, #f7d977 20%, #ecbf4f 50%, #d99c2b 80%, #c4862a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 254, 244, 0.9),
    inset 0 -2px 4px -1px rgba(110, 64, 4, 0.32),
    0 0 12px 0 rgba(240, 184, 72, 0.22);
  text-shadow: 0 1px 0 rgba(255, 246, 214, 0.35);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play)::before,
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play)::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
}
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play)::before {
  inset: 0;
  background: linear-gradient(105deg,
    rgba(255, 252, 238, 0) 36%,
    rgba(255, 250, 230, 0.22) 44%,
    rgba(255, 255, 248, 0.72) 50%,
    rgba(255, 250, 230, 0.22) 56%,
    rgba(255, 252, 238, 0) 64%) no-repeat;
  background-size: 260% 100%;
  background-position: 145% 0;
}
/* The dust layer is twice the pill's size; it drifts a few px, and the pill clips it. */
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play)::after {
  inset: -50% -25%;
  border-radius: 0;
  background:
    radial-gradient(circle at 28% 38%, rgba(255, 250, 228, 0.95) 0 0.9px, transparent 1.6px),
    radial-gradient(circle at 63% 30%, rgba(255, 244, 200, 0.85) 0 0.7px, transparent 1.4px),
    radial-gradient(circle at 44% 66%, rgba(255, 252, 236, 0.9) 0 0.8px, transparent 1.5px),
    radial-gradient(circle at 76% 60%, rgba(255, 240, 190, 0.8) 0 0.7px, transparent 1.4px);
  opacity: 0.5;
}
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play).is-lux-on::before {
  animation: dd-lux-pill-sheen 8s cubic-bezier(0.45, 0, 0.3, 1) var(--lux-delay, 0.8s) infinite;
}
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play).is-lux-on::after {
  will-change: transform, opacity;
  animation: dd-lux-dust 11s ease-in-out var(--lux-delay, 0s) infinite alternate;
}
@keyframes dd-lux-pill-sheen {
  0% { background-position: 145% 0; }
  24% { background-position: -45% 0; }
  100% { background-position: -45% 0; }
}
@keyframes dd-lux-dust {
  0% { transform: translate3d(-6%, 5%, 0); opacity: 0.35; }
  50% { transform: translate3d(2%, -4%, 0); opacity: 0.65; }
  100% { transform: translate3d(7%, 3%, 0); opacity: 0.4; }
}
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play):active {
  transform: scale(0.96);
  box-shadow:
    inset 0 2px 5px rgba(100, 58, 2, 0.4),
    0 0 8px 0 rgba(240, 184, 72, 0.18);
}
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play):focus-visible {
  outline: 2px solid #fff1c2;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play),
  body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play)::before,
  body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play)::after,
  body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play).is-lux-on::before,
  body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play).is-lux-on::after {
    animation: none;
    transition: none;
  }
  body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play)::after {
    opacity: 0.35;
  }
  body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play):active {
    transform: none;
  }
}

/* v709: a quiet gold shimmer through the daily card's subline (every language),
   the same slow sweep as Begin and Play, about every 7 s. The base ink is a soft
   champagne (#d9c9a0) that clears AA on the dark card on its own; the sweep only
   brightens it. Text is painted with background-clip: text, and the box gets a
   little vertical padding (balanced by the margins) so Gurmukhi and Devanagari
   marks above and below the line are inside the painted area, never clipped.
   Reduced motion, or no background-clip: text, keeps the plain static ink. */
body.page-sit #day-home .day-daily {
  color: #d9c9a0;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  body.page-sit #day-home .day-daily {
    padding: 0.3em 0;
    margin-top: calc(0.5rem - 0.3em);
    margin-bottom: calc(0.875rem - 0.3em);
    background-image: linear-gradient(105deg,
      #d9c9a0 0%, #d9c9a0 40%,
      #f3e2ae 46%, #fff6dc 50%, #f3e2ae 54%,
      #d9c9a0 60%, #d9c9a0 100%);
    background-size: 200% 100%;
    background-position: 110% 0;
    background-repeat: repeat-x; /* the ink must cover the whole line at every frame; one band shows at a time */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: dd-lux-text 8s ease-in-out 2.4s infinite;
  }
}
/* v711: the band glides across the line in about 3 s, then rests off the
   line for about 5 s (one band per two widths, so only one is ever in view). */
@keyframes dd-lux-text {
  0% { background-position: 110% 0; }
  40% { background-position: -10% 0; }
  100% { background-position: -10% 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-sit #day-home .day-daily {
    animation: none;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #d9c9a0;
  }
}

/* v713: Together moves to the left of each library card's action row as a longer
   pill: its own friends icon (the pill is its ring now) and a short label (Meditate with a friend / group, in
   the reader's language, up to two lines). Play and the paw stay on the right.
   It is NOT a second gold Play: a fine gold outline over smoked glass, gold ink.
   A faint narrow sheen crosses it about every 10 s, clipped inside the pill, only
   while it is in view (sit/pill-shine.js toggles .is-lux-on). Reduced motion: no
   sheen. The button keeps its aria-label, its click and its keyboard focus; the
   label is aria-hidden like the old word. At least 44px tall. */
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) > .sit-actions {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 0 100%;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.35rem;
}
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex-direction: row;
  justify-content: flex-start;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin-right: auto;
  padding: 0.25rem 0.6rem 0.25rem 0.55rem;
  gap: 0.32rem;
  border: 1px solid rgba(240, 200, 110, 0.62);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 236, 180, 0.1) 0%, rgba(255, 236, 180, 0.03) 55%, rgba(255, 236, 180, 0.06) 100%),
    rgba(18, 14, 6, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.16), inset 0 -1px 0 rgba(120, 80, 10, 0.25);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #f6d37a;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together .sit-together-ring {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 0;
}
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together svg {
  width: 19px;
  height: 19px;
}
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together .sit-together-word {
  min-width: 0;
  max-width: 10.5em;
  font-size: 12.5px;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}
/* Gurmukhi and Devanagari need a larger size to read cleanly; two lines if needed.
   v714: each in its own Noto face. Punjabi at 15.5px reads the same size as Hindi
   at 14px (Gurmukhi letters sit smaller on the line). */
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together .sit-together-word:is(:lang(pa), :lang(hi)) {
  font-size: 14px;
  line-height: 1.3;
}
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together .sit-together-word:lang(hi) {
  font-family: "Noto Sans Devanagari", "Nirmala UI", Mangal, var(--body, sans-serif);
}
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together .sit-together-word:lang(pa) {
  font-family: "Noto Sans Gurmukhi", Raavi, "Nirmala UI", var(--body, sans-serif);
  font-size: 15.5px;
  line-height: 1.25;
}
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg,
    rgba(255, 240, 200, 0) 40%,
    rgba(255, 240, 200, 0.16) 50%,
    rgba(255, 240, 200, 0) 60%) no-repeat;
  background-size: 280% 100%;
  background-position: 150% 0;
}
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together.is-lux-on::before {
  animation: dd-lux-together-sheen 10s cubic-bezier(0.45, 0, 0.3, 1) var(--lux-delay, 1.6s) infinite;
}
@keyframes dd-lux-together-sheen {
  0% { background-position: 150% 0; }
  22% { background-position: -50% 0; }
  100% { background-position: -50% 0; }
}
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together:hover,
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together:focus-visible {
  border-color: #ffe7a8;
  background-color: rgba(40, 30, 10, 0.55);
}
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together:focus-visible {
  outline: 2px solid #fff1c2;
  outline-offset: 2px;
}
body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together:active {
  background-color: rgba(60, 44, 12, 0.6);
}
@media (prefers-reduced-motion: reduce) {
  body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together,
  body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together::before,
  body.page-sit :is(.lib-list .lib-card, .ls-lib .ls-row) .sit-together.is-lux-on::before {
    animation: none;
    transition: none;
  }
}

/* v713: the How it works link under Begin (the stamps and DogeOS testnet
   check-in) is on hold in every language. The markup, its strings and the
   check-in box stay; sit/index.html marks the line hidden and data-howto-hold.
   Remove both to bring it back. */
body.page-sit .sit-howto-line[data-howto-hold][hidden] {
  display: none !important;
}

/* v714: the Hindi library Play (चलाएँ) was 0.62rem, the old tiny base size,
   while Punjabi (ਚਲਾਓ) is 20px Gurmukhi. Hindi now reads the same size:
   Noto Sans Devanagari 18px (same ink height as Gurmukhi at 20px), weight 600
   like the other gold Play pills, at least 44px. */
html:is([lang="hi"], [data-lang="hi"]) body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play) {
  font-family: "Noto Sans Devanagari", "Nirmala UI", Mangal, var(--body, sans-serif);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  height: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
}

/* v716: Together is hidden everywhere for now (library cards in every language, the
   other /sit/ cards that get the pill, and the player's "Meditate together" link) while
   it is redesigned. All of its code, the v713/v714 pill design, labels and accessible
   name stay in the repo. Flag: <html data-together-pills="on"> brings it back
   (pill-shine.js sets it when localStorage "dd-together-pills" is "on", for previewing
   the redesign). display:none also takes it out of the tab order and the accessibility
   tree. Play and the paw keep the right end of the action row, as on cards without
   Together, so there is no empty space where the pill was. */
html:not([data-together-pills="on"]) .sit-together,
html:not([data-together-pills="on"]) #sit-together-link,
html:not([data-together-pills="on"]) .sit-together-link {
  display: none !important;
}

/* v718: the library Play pill (every language) is longer and slimmer: a 36px gold
   pill, at least 6.5rem wide, with more room each side of the word. The button is
   still 44px tall: a 4px transparent band above and below the gold is part of the
   tap target (the gold is painted only inside it; the sweep, glow, dust and
   sparkle are clipped to the gold). Play and the paw keep the right end of the
   row; long words (Wiedergeben, Reproducir) still fit beside the paw at 360px.
   Motion is all transform/opacity, runs only while the pill is in view
   (.is-lux-on from pill-shine.js), and stops entirely with reduced motion:
   - a slow narrow gold light sweep, about every 9 s;
   - a soft inner glow that rises and falls like a breath, about 5.5 s;
   - a tiny sparkle burst where the pill is tapped, inside the pill only;
   - the gold dust keeps drifting, inside the pill only.
   The paw gets a soft gold glint when it is toggled. */
html:is([lang], :not([lang])) body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  min-width: 104px;
  padding: 0 22px;
  border-style: solid;
  border-color: transparent;
  border-width: 4px 0;
  background-clip: padding-box, padding-box;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 0 0 1px #93600f,
    inset 0 1px 0 1px rgba(255, 254, 244, 0.55),
    inset 0 -2px 4px -1px rgba(110, 64, 4, 0.32);
  /* no outer glow: it would draw around the 44px tap box and leave a dark ring
     between it and the 36px gold. */
}
html:is([lang], :not([lang])) body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play):active {
  box-shadow:
    inset 0 0 0 1px #93600f,
    inset 0 2px 5px rgba(100, 58, 2, 0.4);
}
html:is([lang], :not([lang])) body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play):focus-visible {
  outline-offset: -1px;
}
/* Punjabi: pa-type.css sets min-width: 44px through a list that includes an id
   (button#begin-sit), which outranks the rule above; :not(#dd-none) matches every pill
   and lifts this one rule to the same weight so the 104px minimum holds in Punjabi too. */
html:is([lang="pa"], [data-lang="pa"]) body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play):not(#dd-none) {
  min-width: 104px;
}
/* Languages other than English, Hindi and Punjabi used the old 0.62rem base (about 10px)
   inside the library list; their Play word is now 17px like English. */
html:not(:is([lang="hi"], [data-lang="hi"], [lang="pa"], [data-lang="pa"])) body.page-sit .ls-lib .ls-row .play {
  font-size: 17px;
}
/* The sweep is now one narrow band that slides across (transform only). */
html:is([lang], :not([lang])) body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play)::before {
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: 0;
  background: linear-gradient(90deg,
    rgba(255, 250, 230, 0) 0%,
    rgba(255, 248, 222, 0.28) 30%,
    rgba(255, 255, 250, 0.78) 50%,
    rgba(255, 248, 222, 0.28) 70%,
    rgba(255, 250, 230, 0) 100%) no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  transform: translate3d(-140%, 0, 0) skewX(-18deg);
}
html:is([lang], :not([lang])) body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play).is-lux-on::before {
  will-change: transform;
  animation: dd-lux-pill-sweep 9s cubic-bezier(0.45, 0, 0.3, 1) var(--lux-delay, 0.8s) infinite;
}
@keyframes dd-lux-pill-sweep {
  0% { transform: translate3d(-140%, 0, 0) skewX(-18deg); }
  30% { transform: translate3d(320%, 0, 0) skewX(-18deg); }
  100% { transform: translate3d(320%, 0, 0) skewX(-18deg); }
}
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play) > .lux-glow,
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play) > .lux-spark {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play) > .lux-glow {
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(70% 95% at 50% 58%, rgba(255, 251, 230, 0.75) 0%, rgba(255, 238, 180, 0.3) 45%, rgba(255, 238, 180, 0) 75%);
  opacity: 0.18;
}
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play).is-lux-on > .lux-glow {
  will-change: opacity;
  animation: dd-lux-breath 5.5s ease-in-out infinite;
}
@keyframes dd-lux-breath {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.6; }
}
body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play) > .lux-spark {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 246, 0.9) 0 1.6px, rgba(255, 240, 190, 0.35) 3px, transparent 9px),
    radial-gradient(circle at 50% 12%, #fffbe8 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 84% 32%, #fff3c8 0 1px, transparent 1.8px),
    radial-gradient(circle at 80% 74%, #fffbe8 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 46% 90%, #fff3c8 0 1px, transparent 1.8px),
    radial-gradient(circle at 14% 70%, #fffbe8 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 18% 26%, #fff3c8 0 1px, transparent 1.8px);
  opacity: 0;
  transform: scale(0.3);
  animation: dd-lux-spark 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes dd-lux-spark {
  0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.15) rotate(25deg); }
}
/* The paw: a soft gold glint behind the glyph when it is toggled. */
.fav-paw { position: relative; }
.fav-paw > .fav-glint {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 236, 168, 0.7) 0%, rgba(246, 211, 122, 0.25) 45%, rgba(246, 211, 122, 0) 70%);
  opacity: 0;
  transform: scale(0.5);
  animation: dd-fav-glint 0.75s ease-out forwards;
}
@keyframes dd-fav-glint {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  html:is([lang], :not([lang])) body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play).is-lux-on::before,
  body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play).is-lux-on > .lux-glow,
  body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play) > .lux-spark,
  .fav-paw > .fav-glint {
    animation: none;
  }
  body.page-sit :is(li.lib-card .lib-play, .ls-lib .ls-row .play) > .lux-spark,
  .fav-paw > .fav-glint {
    display: none;
  }
}
