/* The mantra and jaap pages (mantra/build.mjs writes them). They load the calendar
   section's two stylesheets for the breadcrumb, sections, tables and questions, and add
   their own look here: the mantra on a palm leaf, and the jaap on a dark card with a ring
   of beads. Each page takes its deity's colour as --accent. */

[data-cal="mantra"] { --accent: #8A2D1C; --accent-on: #FFF4E6; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg%3E%3Cellipse cx='50' cy='30' rx='9' ry='22' transform='rotate(-60 50 62)'/%3E%3Cellipse cx='50' cy='30' rx='9' ry='22' transform='rotate(-30 50 62)'/%3E%3Cellipse cx='50' cy='30' rx='9' ry='22' transform='rotate(0 50 62)'/%3E%3Cellipse cx='50' cy='30' rx='9' ry='22' transform='rotate(30 50 62)'/%3E%3Cellipse cx='50' cy='30' rx='9' ry='22' transform='rotate(60 50 62)'/%3E%3C/g%3E%3Cpath d='M14 70H86' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E"); } /* a lotus */
[data-cal="jaap"] { --accent: #6B3FA0; --accent-on: #FFF4E6; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50.0' cy='14.0' r='5.2'/%3E%3Ccircle cx='62.3' cy='16.2' r='5.2'/%3E%3Ccircle cx='73.1' cy='22.4' r='5.2'/%3E%3Ccircle cx='81.2' cy='32.0' r='5.2'/%3E%3Ccircle cx='85.5' cy='43.7' r='5.2'/%3E%3Ccircle cx='85.5' cy='56.3' r='5.2'/%3E%3Ccircle cx='81.2' cy='68.0' r='5.2'/%3E%3Ccircle cx='73.1' cy='77.6' r='5.2'/%3E%3Ccircle cx='62.3' cy='83.8' r='5.2'/%3E%3Ccircle cx='50.0' cy='86.0' r='5.2'/%3E%3Ccircle cx='37.7' cy='83.8' r='5.2'/%3E%3Ccircle cx='26.9' cy='77.6' r='5.2'/%3E%3Ccircle cx='18.8' cy='68.0' r='5.2'/%3E%3Ccircle cx='14.5' cy='56.3' r='5.2'/%3E%3Ccircle cx='14.5' cy='43.7' r='5.2'/%3E%3Ccircle cx='18.8' cy='32.0' r='5.2'/%3E%3Ccircle cx='26.9' cy='22.4' r='5.2'/%3E%3Ccircle cx='37.7' cy='16.2' r='5.2'/%3E%3Ccircle cx='50' cy='93' r='6.5'/%3E%3C/svg%3E"); } /* a mala */
.mn-page {
  --leaf: #F6E7C1;
  --leaf-edge: #D9BE85;
  --leaf-ink: #4A1E0E;
  --jp-gold: #F2CB6B;
  --jp-ink: #FBF3E3;
  --jp-muted: rgba(251, 243, 227, .72);
  --ico-sound: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M14 38H32L54 20V80L32 62H14Z'/%3E%3Cpath d='M66 34C74 42 74 58 66 66M76 24C90 38 90 62 76 76' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
  --ico-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='24' y='18' width='17' height='64' rx='4'/%3E%3Crect x='59' y='18' width='17' height='64' rx='4'/%3E%3C/svg%3E");
  --ico-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M28 16L84 50L28 84Z'/%3E%3C/svg%3E");
  --ico-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='42' cy='42' r='26' fill='none' stroke='%23000' stroke-width='9'/%3E%3Cpath d='M62 62L86 86' stroke='%23000' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .mn-page { --leaf: #33281A; --leaf-edge: #6B5330; --leaf-ink: #F3DEB5; }
}

/* ---------- headings of the list pages ---------- */
.mn-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 20px; max-width: 920px; margin: 12px 0 22px; }
.mn-intro h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 46px); line-height: 1.3; color: var(--cal-heading); }
.mn-intro .cal-emblem { position: relative; display: block; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--accent) 40%, transparent); }
.mn-intro .cal-emblem::after { content: ""; position: absolute; inset: 18px; background: var(--accent-on); -webkit-mask: var(--motif) center / contain no-repeat; mask: var(--motif) center / contain no-repeat; }
.mn-intro.is-deity .mn-deity { width: 96px; height: 96px; }
.mn-deity { flex: none; border-radius: 50%; object-fit: cover; background: var(--surface); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--accent) 55%, transparent); }
.mn-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.mn-kicker { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.mn-kicker a { color: inherit; }

/* ---------- search ---------- */
.mn-finder { margin: 22px 0 6px; }
.mn-search { position: relative; display: block; max-width: 620px; }
.mn-search input { width: 100%; min-height: 54px; padding: 0 18px 0 52px; border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 17px; }
.mn-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.mn-search-icon { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--muted); -webkit-mask: var(--ico-search) center / contain no-repeat; mask: var(--ico-search) center / contain no-repeat; }
.mn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mn-chips button { min-height: 40px; padding: 0 15px; border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface-raised); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.mn-chips button:hover { border-color: var(--gold); }
.mn-chips button.is-on { border-color: var(--accent); background: var(--accent); color: var(--accent-on); }
.mn-found { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.mn-found:empty { display: none; }
.mn-results { margin-top: 14px; }
.mn-results:empty { display: none; }

/* ---------- cards ---------- */
.mn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.mn-card { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 16px 18px 14px; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 16px; background: var(--surface); }
.mn-card[hidden] { display: none; }
.mn-card header { display: flex; align-items: center; gap: 12px; }
.mn-card h3 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.mn-card h3 a { color: var(--text); text-decoration: none; }
.mn-card h3 a:hover { color: var(--primary-strong); text-decoration: underline; }
.mn-card header p { color: var(--muted); font-size: 13.5px; }
.mn-card-text { color: var(--leaf-ink); font-family: var(--font-display); font-size: 19px; line-height: 1.6; }
.mn-card footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--border-strong); }
.mn-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.mn-badge::before { content: ""; width: 14px; height: 14px; background: var(--success); -webkit-mask: var(--ico-sound) center / contain no-repeat; mask: var(--ico-sound) center / contain no-repeat; }
.mn-card-actions { display: inline-flex; align-items: center; gap: 14px; }
.mn-card-link { color: var(--primary-strong); font-size: 15px; font-weight: 600; }
.mn-card-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--accent-on); font-size: 15px; font-weight: 700; text-decoration: none; }
.mn-card-btn:hover { filter: brightness(1.08); }
.mn-group h2 { display: flex; align-items: center; gap: 12px; }
.mn-group h2 a { color: inherit; text-decoration: none; }
.mn-group h2 a:hover { text-decoration: underline; }
.mn-group[hidden] { display: none; }

.mn-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mn-kinds article { padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.mn-kinds h3 { margin-bottom: 6px; color: var(--cal-heading); font-size: 18px; }
.mn-kinds p { font-size: 15.5px; line-height: 1.65; }
.mn-kind-list { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.mn-kind-list a { padding: 3px 12px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); font-size: 14.5px; text-decoration: none; }
.mn-kind-list a:hover { border-color: var(--gold); }

.mn-gods { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.mn-gods a { display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); text-align: center; text-decoration: none; transition: border-color .15s, transform .15s; }
.mn-gods a:hover { border-color: var(--accent); transform: translateY(-2px); }
.mn-gods img { border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent); }
.mn-gods span { font-size: 15px; font-weight: 700; }
.mn-gods small { color: var(--muted); font-size: 12.5px; }

/* ---------- a mantra on a palm leaf ---------- */
.mn-hero { margin: 10px 0 8px; }
.mn-hero > header { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.mn-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); line-height: 1.25; color: var(--cal-heading); }
.mn-also { color: var(--muted); font-size: 15px; }
.mn-scroll {
  position: relative;
  padding: 34px clamp(44px, 7vw, 92px) 30px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--leaf-edge) 22%, transparent) 23px 24px),
    linear-gradient(180deg, color-mix(in srgb, var(--leaf) 92%, #fff), var(--leaf));
  box-shadow: inset 0 0 0 1px var(--leaf-edge), inset 0 0 0 6px var(--leaf), inset 0 0 0 7px color-mix(in srgb, var(--accent) 45%, transparent), 0 24px 40px -28px rgba(70, 30, 10, .55);
  text-align: center;
}
/* the two holes a palm-leaf manuscript is strung through */
.mn-scroll::before, .mn-scroll::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), 0 0 0 2px var(--leaf-edge); }
.mn-scroll::before { left: 18px; }
.mn-scroll::after { right: 18px; }
.mn-text { color: var(--leaf-ink); font-family: var(--font-display); font-size: 22px; line-height: 1.75; }
.mn-text.is-big { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.65; }
.mn-translit { margin-top: 10px; color: color-mix(in srgb, var(--leaf-ink) 70%, transparent); font-size: 16px; font-style: italic; }
.mn-translit.is-block { margin: 0 0 12px; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface); color: var(--text); }
.mn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.mn-actions .btn { min-height: 54px; font-size: 17px; }
.mn-play { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px 0 12px; border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.mn-play:hover { border-color: var(--accent); }
.mn-play.is-big { min-height: 54px; padding: 0 20px 0 14px; font-size: 17px; }
.mn-play small { color: var(--muted); font-size: 13px; font-weight: 500; }
.mn-play-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); }
.mn-play-ico::after { content: ""; width: 12px; height: 12px; margin-left: 2px; background: var(--accent-on); -webkit-mask: var(--ico-play) center / contain no-repeat; mask: var(--ico-play) center / contain no-repeat; }
.mn-play.is-on .mn-play-ico::after { margin-left: 0; -webkit-mask-image: var(--ico-pause); mask-image: var(--ico-pause); }
.mn-meaning { margin-top: 10px; font-size: 16.5px; line-height: 1.7; }
.mn-meaning.is-big { max-width: 820px; margin: 0 0 16px; font-size: 19px; }
.mn-speak { display: grid; gap: 8px; max-width: 860px; padding-left: 22px; font-size: 16.5px; line-height: 1.7; list-style: disc; }
.mn-speak a { color: var(--primary-strong); }
.mn-play-line { margin-top: 14px; }
.mn-full { display: grid; gap: 16px; }
.mn-leaf { padding: 20px 22px; border: 1px solid var(--leaf-edge); border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--leaf) 70%, var(--surface)), var(--surface)); }
.mn-leaf h2 { font-family: var(--font-display); font-size: 26px; font-weight: 400; }
.mn-leaf h2 a { color: var(--cal-heading); text-decoration: none; }
.mn-leaf .mn-text { margin-top: 8px; font-size: 24px; }
.mn-leaf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.mn-leaf-actions > a:not(.mn-card-btn) { color: var(--primary-strong); font-weight: 600; }

/* ---------- the four counts ---------- */
.mn-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 16px; }
.mn-count { padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.mn-count.is-chosen { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.mn-count h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; font-size: 17px; }
.mn-count h3 b { color: var(--accent); font-family: var(--font-display); font-size: 34px; font-weight: 400; line-height: 1; }
.mn-count h3 small { flex-basis: 100%; color: var(--muted); font-size: 14px; font-weight: 500; }
.mn-count dl { display: grid; gap: 10px; }
.mn-count dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.mn-count dd { font-size: 15px; line-height: 1.6; }

/* ---------- the jaap ---------- */
.jp {
  position: relative;
  margin: 8px 0 10px;
  padding: 22px clamp(18px, 3vw, 34px) 26px;
  border-radius: 26px;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    radial-gradient(80% 60% at 100% 100%, rgba(242, 203, 107, .12), transparent 70%),
    #160F22;
  color: var(--jp-ink);
  box-shadow: 0 30px 60px -34px rgba(20, 10, 40, .8);
  scroll-margin-top: 80px;
}
/* on a wide screen the jaap stays the width of a hand-held page, in the middle */
@media (min-width: 900px) {
  .jp { max-width: 760px; margin-left: auto; margin-right: auto; padding: 28px 40px 32px; }
}
.jp [hidden] { display: none !important; }
.jp-head { display: flex; align-items: center; gap: 14px; }
.jp-head img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #160F22, 0 0 0 4px var(--jp-gold); }
.jp-kicker { color: var(--jp-muted); font-size: 14px; font-weight: 600; }
.jp h1 { color: #FFF6E2; font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); font-weight: 400; line-height: 1.3; }
.jp-choose { display: grid; gap: 6px; margin-top: 16px; color: var(--jp-muted); font-size: 14px; font-weight: 600; }
.jp-choose select { min-height: 52px; padding: 0 14px; border: 1.5px solid rgba(242, 203, 107, .55); border-radius: 14px; background: rgba(255, 255, 255, .06); color: #FFF6E2; font: inherit; font-size: 17px; }
.jp-choose option, .jp-choose optgroup { background: #241A34; color: #FFF6E2; }
.jp-text { margin: 16px 0 4px; color: #FFE7AE; font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 30px); line-height: 1.6; text-align: center; text-wrap: balance; }
.jp-text.is-session { margin: 6px auto 0; max-width: 720px; font-size: clamp(19px, 3vw, 26px); }
.jp-resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(242, 203, 107, .45); border-radius: 14px; background: rgba(242, 203, 107, .1); }
.jp-resume p { font-size: 15px; font-weight: 600; }
.jp-resume div { display: flex; gap: 12px; align-items: center; }
.jp fieldset { margin-top: 16px; border: 0; }
.jp legend { margin-bottom: 8px; color: var(--jp-muted); font-size: 14px; font-weight: 600; }
.jp-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jp-modes legend { grid-column: 1 / -1; }
.jp-counts > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.jp fieldset label { position: relative; display: block; cursor: pointer; }
.jp fieldset input { position: absolute; opacity: 0; pointer-events: none; }
.jp fieldset label span { display: grid; place-items: center; min-height: 50px; padding: 4px 8px; border: 1.5px solid rgba(255, 246, 226, .22); border-radius: 14px; background: rgba(255, 255, 255, .04); color: #FFF6E2; font-size: 15.5px; font-weight: 600; text-align: center; transition: border-color .15s, background .15s; }
.jp-counts label span { font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.jp fieldset input:checked + span { border-color: var(--jp-gold); background: rgba(242, 203, 107, .16); color: #FFE7AE; box-shadow: 0 0 0 1px var(--jp-gold); }
.jp fieldset input:focus-visible + span { outline: 3px solid var(--jp-gold); outline-offset: 2px; }
.jp-time { display: grid; gap: 2px; margin-top: 14px; text-align: center; }
.jp-time span { font-size: 16.5px; font-weight: 700; }
.jp-time small { color: var(--jp-muted); font-size: 14px; }
.jp-start { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; margin-top: 16px; border: 0; border-radius: 16px; background: linear-gradient(180deg, #F6D27E, #DDA43A); color: #2A1608; font: inherit; font-size: 19px; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(242, 203, 107, .6); }
.jp-start:hover { filter: brightness(1.05); }
.jp-start:disabled { background: rgba(120, 100, 80, .18); color: var(--muted); box-shadow: none; cursor: default; }
.jp-read { margin-top: 12px; text-align: center; }
.jp-read a, .jp-link { color: #FFE7AE; font-size: 15px; font-weight: 600; }
.jp-link { padding: 6px 4px; border: 0; background: none; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--jp-gold); color: #2A1608; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.jp-btn.is-light { border: 1.5px solid rgba(242, 203, 107, .6); background: transparent; color: #FFE7AE; }
.jp-noscript { margin-top: 10px; color: #FFD38A; text-align: center; }

.jp-session { display: grid; justify-items: center; }
.jp-session-name { color: var(--jp-muted); font-size: 15px; font-weight: 600; }
.jp-ring { position: relative; width: min(78vw, 340px); aspect-ratio: 1; margin-top: 6px; }
.jp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jp-track { fill: none; stroke: rgba(255, 246, 226, .1); stroke-width: 4; }
.jp-arc { fill: none; stroke: var(--jp-gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset .35s ease; filter: drop-shadow(0 0 6px rgba(242, 203, 107, .55)); }
/* the rudraksha mala: beads to come are dim, beads counted are lit, the last one glows */
.jp-thread { fill: none; stroke: rgba(242, 203, 107, .35); stroke-width: .8; }
.jp-bead { opacity: .5; filter: brightness(.85); transition: opacity .25s, filter .25s; }
.jp-bead.is-done { opacity: 1; filter: brightness(1.35) contrast(1.1) drop-shadow(0 0 .6px rgba(242, 203, 107, .9)); }
.jp-bead.is-now { filter: drop-shadow(0 0 3px #F2CB6B) drop-shadow(0 0 1px #F2CB6B); }
.jp-sumeru { filter: drop-shadow(0 0 2px rgba(242, 203, 107, .7)); }
.jp-count { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.jp-count b { color: #FFF6E2; font-family: var(--font-display); font-size: clamp(60px, 18vw, 92px); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.jp-count span { color: var(--jp-muted); font-size: 20px; font-weight: 600; }
.jp-count small { margin-top: 4px; color: var(--jp-gold); font-size: 13.5px; font-weight: 600; }
.jp-count small:empty { display: none; }
.jp.is-paused .jp-ring { opacity: .55; }
.jp-controls { display: flex; gap: 10px; margin-top: 14px; }
.jp-ctl { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1.5px solid rgba(255, 246, 226, .3); border-radius: 999px; background: rgba(255, 255, 255, .05); color: #FFF6E2; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.jp-ctl[aria-pressed="true"], .jp-ctl.is-paused { border-color: var(--jp-gold); color: #FFE7AE; }
.jp-ico { width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ico-sound) center / contain no-repeat; mask: var(--ico-sound) center / contain no-repeat; }
.jp-ico.is-pause { -webkit-mask-image: var(--ico-pause); mask-image: var(--ico-pause); }
.jp-ctl.is-paused .jp-ico.is-pause { -webkit-mask-image: var(--ico-play); mask-image: var(--ico-play); }
.jp-ctl[aria-pressed="false"] .jp-ico.is-sound { opacity: .5; }
.jp-tap { width: min(100%, 460px); min-height: 92px; margin-top: 16px; border: 0; border-radius: 22px; background: linear-gradient(180deg, #F6D27E, #DDA43A); color: #2A1608; font: inherit; font-size: 24px; font-weight: 800; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(242, 203, 107, .6), inset 0 -4px 0 rgba(0, 0, 0, .12); -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.jp-tap:active { transform: scale(.98); box-shadow: 0 6px 16px -10px rgba(242, 203, 107, .6), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.jp-auto { max-width: 460px; margin-top: 16px; color: var(--jp-muted); font-size: 15px; text-align: center; }
.jp-end { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 16px; }
.jp-end .jp-link { color: var(--jp-muted); }

.jp-done { display: grid; justify-items: center; padding: 18px 0 6px; text-align: center; }
.jp-done-mark { font-size: 54px; line-height: 1; }
.jp-done h2 { margin-top: 10px; color: #FFF6E2; font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); font-weight: 400; line-height: 1.35; }
.jp-done-note { margin-top: 6px; color: var(--jp-muted); font-size: 16px; }
.jp-done-actions { display: grid; gap: 10px; width: min(100%, 460px); margin-top: 18px; }
.jp-done-actions .jp-start { margin-top: 0; }

/* the window after a jaap */
.jp-pop { width: min(92vw, 420px); margin: auto; padding: 30px 24px 22px; border: 0; border-radius: 24px; background: var(--surface); color: var(--text); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.jp-pop::backdrop { background: rgba(18, 10, 28, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.jp-pop[open] { animation: jp-rise .28s ease-out; }
.jp-pop img { margin: 0 auto 8px; border-radius: 50%; }
.jp-pop h2 { color: var(--cal-heading); font-family: var(--font-display); font-size: 28px; font-weight: 400; }
.jp-pop p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.jp-pop .jp-start { margin-top: 18px; }
.jp-pop .jp-link { margin-top: 10px; color: var(--muted); }
.jp-pop-soon { font-size: 14px !important; }
.jp-pop-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--secondary-subtle); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
@keyframes jp-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 719px) {
  .mn-page .cal-crumbs { font-size: 13px; }
  .jp { margin: 4px calc(-1 * var(--gutter) + 6px) 8px; padding: 18px 16px 22px; border-radius: 22px; }
  .jp-head img { width: 48px; height: 48px; }
  .jp h1 { font-size: 25px; }
  .jp-text { margin-top: 12px; font-size: 21px; }
  .jp fieldset { margin-top: 12px; }
  .jp-modes label span { min-height: 46px; font-size: 14.5px; }
  .jp-counts label span { min-height: 48px; font-size: 22px; }
  .jp-start { min-height: 56px; }
  .jp-tap { min-height: 84px; font-size: 22px; }
  .mn-intro { grid-template-columns: minmax(0, 1fr); }
  .mn-intro .cal-emblem { width: 60px; height: 60px; }
  .mn-intro .cal-emblem::after { inset: 13px; }
  .mn-hero > header { gap: 14px; }
  .mn-hero .mn-deity { width: 60px; height: 60px; }
  .mn-scroll { padding: 26px 34px 24px; }
  .mn-scroll::before { left: 11px; }
  .mn-scroll::after { right: 11px; }
  .mn-actions > * { flex: 1 1 100%; justify-content: center; }
  .mn-cards { grid-template-columns: minmax(0, 1fr); }
  .mn-gods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .jp-arc, .jp-bead, .jp-pop[open] { transition: none; animation: none; }
}
