/* Routine Builder + Behaviour Coach (v2.8), and their guide pages. Same Sparklins tokens. */
.helper [hidden], .rbplay[hidden], .sos[hidden] { display: none !important; }
.helper .crumbs, .hguide .crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 800; font-size: 0.85rem; color: var(--ink-muted); margin: 0 0 14px; }
.helper .crumbs a, .hguide .crumbs a { color: inherit; }
.textbtn { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 800; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 36px; }

/* ---------------- hero (layered) */
.hhero { position: relative; overflow: clip; padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 6vw, 80px); }
.hhero--routine { background: radial-gradient(110% 90% at 88% 8%, #DDEFD8 0%, rgba(221,239,216,0) 55%), var(--paper); }
.hhero--coach { background: radial-gradient(110% 90% at 86% 10%, #E7DDF3 0%, rgba(231,221,243,0) 55%), var(--paper); }
.hhero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hhero h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.2rem); font-weight: 700; max-width: 14ch; }
.hhero__lede { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; max-width: 46ch; margin: 18px 0 0; }
.hhero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn--sos { --b: var(--tangerine-fill); --t: #2A1206; }
.hhero__art { position: relative; aspect-ratio: 1 / 0.96; max-width: 560px; width: 100%; justify-self: center; }
.hhero__mascot { position: absolute; right: -4%; bottom: -2%; width: 50%; height: auto; z-index: 3; filter: drop-shadow(0 18px 22px rgba(53,42,70,0.2)); }
.hhero__mascot--coach { width: 62%; right: -6%; bottom: 0; }
.hhero__float { position: absolute; height: auto; z-index: 4; filter: drop-shadow(0 10px 12px rgba(53,42,70,0.18)); }
.hhero__float--a { width: 15%; left: -3%; top: 58%; rotate: -12deg; }
.hhero__float--b { width: 18%; right: 6%; top: -2%; rotate: 10deg; }
.hhero__float--c { width: 22%; left: 2%; bottom: 4%; rotate: -10deg; }
.hhero__float--d { width: 17%; right: 4%; top: 0; rotate: 12deg; }
@media (max-width: 860px) {
  .hhero__grid { grid-template-columns: 1fr; }
  .hhero__art { order: -1; max-width: 400px; aspect-ratio: 1 / 0.82; margin-bottom: 8px; }
  .hhero--routine .hhero__art { aspect-ratio: 1 / 1; }
  .hhero h1 { max-width: 16ch; }
}
@media (max-width: 420px) { .hhero__cta .btn { flex: 1 1 100%; } }

/* routine hero chart */
.rbchart { position: absolute; left: 2%; top: 9%; width: 60%; background: #fff; border-radius: 18px; padding: 22px 18px 16px; box-shadow: var(--sc-e3); rotate: -3deg; z-index: 2; }
.rbchart__tape { position: absolute; left: 50%; top: -12px; width: 90px; height: 26px; translate: -50% 0; background: rgba(252,204,48,0.75); rotate: 2deg; border-radius: 3px; }
.rbchart__title { font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(1rem, 0.8rem + 0.8vw, 1.35rem); margin: 0 0 10px; text-align: center; }
.rbchart ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rbchart li { display: grid; grid-template-columns: 40px 1fr 30px; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 10px; background: var(--paper); font-weight: 800; font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.95rem); }
.rbchart li img { width: 40px; height: 40px; object-fit: contain; }
.rbchart li i { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--line-strong); position: relative; }
.rbchart li i::after { content: ""; position: absolute; inset: -4px; background: url(../assets/img/stk/trophy.webp) center / contain no-repeat; transform: scale(0) rotate(-40deg); opacity: 0; transition: transform 380ms cubic-bezier(.3,1.6,.5,1), opacity 160ms; }
.rbchart li i.is-on { border-color: transparent; }
.rbchart li i.is-on::after { transform: scale(1) rotate(0); opacity: 1; }
@media (max-width: 860px) { .rbchart { width: 64%; padding: 16px 12px 12px; } .rbchart li { grid-template-columns: 32px 1fr 24px; padding: 2px 4px; } .rbchart li img { width: 32px; height: 32px; } .rbchart li i { width: 22px; height: 22px; } }

/* coach hero flip card (the signature move) */
.saycard { position: absolute; left: 0; top: 6%; width: 58%; aspect-ratio: 1.45; z-index: 5; perspective: 900px; --flip: 0; cursor: pointer; }
.saycard.is-say { --flip: 1 !important; }
.saycard__face { position: absolute; inset: 0; border-radius: 20px; padding: 18px 20px; display: grid; align-content: center; gap: 8px; backface-visibility: hidden; box-shadow: var(--sc-e3); transition: transform 120ms linear; }
.saycard__face--not { background: #fff; transform: rotateY(calc(var(--flip) * 180deg)); }
.saycard__face--say { background: var(--plum); color: var(--on-plum); transform: rotateY(calc(var(--flip) * 180deg - 180deg)); }
.saycard__face p { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1rem, 0.75rem + 1vw, 1.45rem); line-height: 1.2; }
.saycard__face--not p { text-decoration: line-through; text-decoration-color: var(--tangerine-fill); text-decoration-thickness: 3px; color: var(--ink-muted); }
.saycard__k { font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.saycard__face--not .saycard__k { color: var(--tangerine); }
.saycard__face--say .saycard__k { color: var(--star); }

/* ---------------- tool frame */
.hwork { padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); background: var(--paper-sunk); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr-h) + 8px); }
.hwork__title { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); margin-bottom: 20px; }
.hcard { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.6vw, 28px); box-shadow: var(--sc-e1); display: grid; gap: 16px; }
.hstep { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 0; }
.hstep span { width: 30px; height: 30px; border-radius: 50%; background: var(--star); display: grid; place-items: center; font-size: 1rem; box-shadow: var(--sticker); }
.hstep__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hrow { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.hfield { display: grid; gap: 8px; font-weight: 800; font-size: 0.95rem; min-width: 0; }
.hfield small { font-weight: 600; color: var(--ink-muted); }
.hin { width: 100%; min-height: 46px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 600; padding: 9px 12px; }
.hin:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(252,204,48,0.55); }
.hin--time { width: auto; min-width: 140px; }
.hhint { margin: 0; font-size: 0.88rem; color: var(--ink-muted); line-height: 1.45; font-weight: 600; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks--round .pick { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
.picks--sm .pick { min-height: 42px; padding: 6px 14px; font-size: 0.92rem; }
.picks--days .pick { min-width: 56px; }
.hactions { display: grid; gap: 10px; }
.hactions__row { display: flex; flex-wrap: wrap; gap: 8px; }
.hactions__row .btn { flex: 1 1 auto; }

/* ---------------- routine builder layout */
.rb { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.rb__form { display: grid; gap: 16px; min-width: 0; }
.rb__preview { position: sticky; top: calc(var(--hdr-h) + 12px); display: grid; gap: 14px; }
@media (max-width: 960px) { .rb { grid-template-columns: 1fr; } .rb__preview { position: static; } }
.rbtypes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rbtype { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; font: inherit; font-weight: 800; font-size: 0.85rem; color: var(--ink); text-align: center; line-height: 1.2; }
.rbtype img { width: 48px; height: 48px; object-fit: contain; }
.rbtype[aria-selected="true"] { border-color: var(--ink); background: #FFF6D6; box-shadow: var(--sticker); }
@media (max-width: 480px) { .rbtypes { grid-template-columns: repeat(2, 1fr); } }
.rbsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.rbstep { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.rbstep img { width: 52px; height: 52px; object-fit: contain; }
.rbstep--empty { display: block; text-align: center; color: var(--ink-muted); font-weight: 700; padding: 16px; }
.rbstep__main { display: grid; gap: 2px; min-width: 0; }
.hin--step { min-height: 38px; padding: 6px 10px; border-width: 1.5px; font-weight: 800; }
.rbstep__time { font-size: 0.8rem; font-weight: 700; color: var(--ink-muted); padding-left: 2px; }
.rbstep__mins { display: flex; align-items: center; gap: 2px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rbstep__mins span { min-width: 54px; text-align: center; font-size: 0.95rem; }
.rbstep__mins small { font-weight: 700; color: var(--ink-muted); font-size: 0.75rem; }
.rbstep__mins button, .rbstep__move button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; font-size: 0.95rem; }
.rbstep__move { display: flex; gap: 4px; }
.rbstep__move button:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 600px) {
  .rbstep { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "i m m" "i n v"; row-gap: 6px; }
  .rbstep img { grid-area: i; width: 44px; height: 44px; }
  .rbstep__main { grid-area: m; }
  .rbstep__mins { grid-area: n; }
  .rbstep__move { grid-area: v; justify-self: end; }
}
.rbadd { border: 2px dashed var(--line-strong); border-radius: 14px; padding: 0 14px; }
.rbadd > summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; }
.rbadd > summary::before { content: "+ "; }
.rbadd[open] { padding-bottom: 14px; }
.rbadd__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.rbadd__item { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.2; }
.rbadd__item:hover { border-color: var(--ink); }
.rbadd__item img { width: 44px; height: 44px; object-fit: contain; }
.rbadd__custom { display: flex; gap: 8px; margin-top: 12px; }

.rbpaper { background: #fff; border-radius: var(--r-lg); padding: 22px 20px 18px; box-shadow: var(--sc-e3); position: relative; border-top: 10px solid var(--star); }
.rbpaper__k { margin: 0; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--meadow); }
.rbpaper__t { font-size: 1.5rem; margin: 4px 0 14px; }
.rbpaper__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rbpaper__list li { display: grid; grid-template-columns: 64px 46px 1fr 28px; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 10px; }
.rbpaper__list li:nth-child(odd) { background: var(--paper); }
.rbpaper__time { font-size: 0.8rem; font-weight: 800; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.rbpaper__list img { width: 44px; height: 44px; object-fit: contain; }
.rbpaper__l { font-weight: 800; font-size: 0.95rem; }
.rbpaper__list i { width: 24px; height: 24px; border-radius: 50%; border: 2px dashed var(--line-strong); }
.rbpaper__foot { margin: 12px 0 0; font-weight: 800; font-size: 0.88rem; color: var(--ink-muted); text-align: center; }

.hweek { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 10px; }
.hweek__head { display: flex; justify-content: space-between; font-weight: 800; }
.hweek__head span { color: var(--meadow); }
.hweek__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hday { display: grid; justify-items: center; gap: 4px; padding: 8px 0; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; font-weight: 800; font-size: 0.78rem; color: var(--ink); min-height: 64px; }
.hday i { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--line-strong); }
.hday img { width: 28px; height: 28px; }
.hday.is-today { border-color: var(--ink); }
.hday.is-on { background: #FFF6D6; }
.hday.is-off { opacity: 0.55; }
.hday:disabled { cursor: default; opacity: 0.4; }
.horder { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: var(--plum); color: var(--on-plum); border-radius: var(--r-lg); padding: 16px 18px; }
.horder img { width: 64px; height: auto; }
.horder__t { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.45; }

/* play mode */
.rbplay { position: fixed; inset: 0; z-index: 170; background: radial-gradient(120% 80% at 50% 0%, #FFE7A3, var(--paper) 60%); display: grid; grid-template-rows: auto 1fr auto; padding: 16px max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-bottom)); }
.rbplay__top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.rbplay__stage { display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center; }
.rbplay__stage.is-in { animation: rbin 420ms var(--sc-ease-out); }
@keyframes rbin { from { opacity: 0; transform: translateX(40px) scale(0.96); } to { opacity: 1; transform: none; } }
.rbplay__ring { position: relative; width: min(62vw, 46vh, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.rbplay__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.rbplay__track { fill: #fff; stroke: var(--paper-sunk); stroke-width: 8; }
.rbplay__sun { fill: none; stroke: var(--honey); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 900ms linear; }
.rbplay__ring img { width: 66%; height: auto; position: relative; }
.rbplay h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
.rbplay__time { margin: 0; font-weight: 800; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.rbplay__done { min-width: min(80vw, 320px); min-height: 72px; font-size: 1.6rem; }
.rbplay__ctrl { display: flex; gap: 24px; }
.rbplay__dots { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.rbplay__dots li { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; opacity: 0.45; border: 2px solid transparent; }
.rbplay__dots li img { width: 30px; height: 30px; object-fit: contain; }
.rbplay__dots li.is-now { opacity: 1; border-color: var(--ink); }
.rbplay__dots li.is-done { opacity: 1; background: #FFF6D6; position: relative; }
.rbplay__dots li.is-done::after { content: ""; position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; background: url(../assets/img/stk/trophy.webp) center / contain no-repeat; }

/* ---------------- coach */
.bcpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bccard { display: grid; justify-items: center; gap: 4px; padding: 14px 8px 12px; border: 2px solid var(--line); border-radius: 18px; background: var(--paper-raised); cursor: pointer; font: inherit; color: var(--ink); text-align: center; transition: transform 140ms var(--sc-ease-out), border-color 140ms; }
.bccard:hover { transform: translateY(-2px); border-color: var(--ink); }
.bccard img { width: 76px; height: 76px; object-fit: contain; }
.bccard strong { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.15; }
.bccard span { font-size: 0.8rem; font-weight: 700; color: var(--ink-muted); }
.bccard[aria-checked="true"] { border-color: var(--ink); background: #FFF6D6; box-shadow: var(--sticker); }
@media (max-width: 480px) { .bcpick { grid-template-columns: repeat(2, 1fr); } }
.bcabout { margin-top: 18px; max-width: 860px; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.bcabout .btn { justify-self: start; }
.bcplan { margin-top: 24px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 36px); box-shadow: var(--sc-e2); display: grid; gap: 8px; scroll-margin-top: calc(var(--hdr-h) + 12px); outline: none; }
.bchead { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.bchead img { width: clamp(72px, 10vw, 120px); height: auto; }
.bchead h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin: 2px 0 6px; }
.bchead p:last-child { margin: 0; line-height: 1.5; }
.bchead .textbtn { align-self: start; }
@media (max-width: 600px) { .bchead { grid-template-columns: auto 1fr; } .bchead .textbtn { grid-column: 1 / -1; justify-self: start; } }
.bcactions { margin-top: 10px; }
.bcnote { margin: 4px 0 0; background: #EEF7EB; color: #1D4F33; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 0.92rem; line-height: 1.45; }
.bcsec { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 14px; display: grid; gap: 12px; }
.bcsec h3 { font-size: 1.35rem; }
.bcsec p { margin: 0; line-height: 1.6; }
.bcwhy { font-size: 1.05rem; max-width: 70ch; }
.bcmoment { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .bcmoment { grid-template-columns: 1fr; } }
.flipc { position: relative; width: 100%; height: 100%; min-height: 190px; display: grid; align-content: start; gap: 10px; text-align: left; padding: 18px 18px 16px; border-radius: 18px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.flipc__n { width: 28px; height: 28px; border-radius: 50%; background: var(--star); display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; }
.flipc__do { font-weight: 800; font-size: 1.02rem; line-height: 1.35; }
.flipc__say, .flipc__not { display: grid; gap: 4px; font-family: var(--sc-font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; border-radius: 12px; padding: 10px 12px; }
.flipc__say { background: var(--plum); color: var(--on-plum); }
.flipc__say b, .flipc__not b { font-family: var(--sc-font-text); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.flipc__say b { color: var(--star); }
.flipc__not { display: none; background: var(--tangerine-soft); color: #6B2A0B; text-decoration: line-through; text-decoration-thickness: 2px; }
.flipc__not b { color: var(--tangerine); text-decoration: none; display: block; }
.flipc.is-not .flipc__say { display: none; }
.flipc.is-not .flipc__not { display: grid; animation: flipin 260ms var(--sc-ease-out); }
.flipc.is-not .flipc__say, .flipc:not(.is-not) .flipc__say { animation: flipin 260ms var(--sc-ease-out); }
@keyframes flipin { from { transform: rotateX(70deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hticks li { padding-left: 30px; position: relative; line-height: 1.5; }
.hticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: var(--star); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.bcacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bcact { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 0.85rem; font-weight: 700; }
.bcact:hover { border-color: var(--ink); }
.bcact img { width: 56px; height: 56px; }
.bcact strong { display: block; font-size: 1rem; }
.bctoday { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: #FFF6D6; border-radius: 16px; padding: 14px 16px; }
.bctoday p:last-child { font-weight: 700; }
.bctoday__rate { display: grid; gap: 6px; font-weight: 800; font-size: 0.85rem; }
.bctoday__rate div { display: flex; gap: 6px; flex-wrap: wrap; }
.bctoday__rate .pick { min-height: 40px; padding: 6px 12px; font-size: 0.88rem; }
@media (max-width: 640px) { .bctoday { grid-template-columns: 1fr; } }
.bcdots { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.bcdot { height: 12px; border-radius: 6px; background: var(--paper-sunk); }
.bcdot--better { background: var(--meadow); }
.bcdot--same { background: var(--star); }
.bcdot--harder { background: var(--tangerine-fill); }
.bcdot.is-today { outline: 2px solid var(--ink); outline-offset: 1px; }
.bcdays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (max-width: 760px) { .bcdays { grid-template-columns: 1fr; } }
.bcdays button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 0.88rem; line-height: 1.4; color: var(--ink); cursor: pointer; }
.bcdays button strong { display: block; font-size: 0.95rem; }
.bcdays__n { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--line-strong); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; }
.bcdays button[aria-pressed="true"] { background: #F2F8EF; border-color: #9CC7A9; }
.bcdays button[aria-pressed="true"] .bcdays__n { background: var(--meadow); color: #fff; border: 0; }
.bcdays li.is-today button { border-color: var(--ink); }
.bcchart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
@media (max-width: 720px) { .bcchart { grid-template-columns: 1fr; } }
.bcchart__paper { background: var(--paper); border: 3px solid var(--star); border-radius: 20px; padding: 18px; text-align: center; }
.bcchart__paper img { width: 70px; height: auto; }
.bcchart__paper p { margin: 4px 0 0; font-weight: 800; }
.bcchart__paper h4 { font-family: var(--sc-font-display); font-size: 1.5rem; margin: 0 0 12px; }
.bcchart__stars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.bcchart__stars i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--honey); }
.bcchart__side { display: grid; gap: 10px; justify-items: start; }
.bcreset { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: #F3EEF9; border-radius: 16px; padding: 14px 18px; }
.bcreset img { width: 96px; height: auto; }
.bcreset ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-weight: 700; }
.bcask { display: grid; gap: 10px; max-width: 760px; }
.bcask .btn { justify-self: start; }
.bcanswer { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; }
.bcanswer h4 { font-size: 1rem; margin: 6px 0 0; }
.bcanswer ul { margin: 0; padding-left: 20px; font-weight: 700; }
.bcpreview { background: #FFF6D6; border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.bcalert { background: var(--tangerine-soft); color: #5A2208; border-radius: 14px; padding: 14px 16px; }
.bcalert p { margin: 6px 0 0; }
.bcflags { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.bchelp { background: var(--plum); color: var(--on-plum) !important; border-radius: 14px; padding: 12px 16px; font-weight: 700; }

/* SOS sheet */
.sos { position: fixed; inset: 0; z-index: 175; display: grid; place-items: end center; }
.sos__scrim { position: absolute; inset: 0; background: rgba(30,23,41,0.6); }
.sos__panel { position: relative; width: min(640px, 100%); max-height: 92vh; overflow: auto; background: var(--paper); border-radius: 28px 28px 0 0; padding: 20px clamp(18px, 4vw, 32px) max(24px, env(safe-area-inset-bottom)); display: grid; gap: 14px; animation: sosup 260ms var(--sc-ease-drawer); }
@keyframes sosup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .sos { place-items: center; } .sos__panel { border-radius: 28px; } }
.sos__head { display: flex; justify-content: space-between; align-items: center; }
.sos__head h2 { font-size: 1.7rem; }
.sos__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: s; }
.sos__steps li { counter-increment: s; position: relative; background: #fff; border-radius: 14px; padding: 13px 14px 13px 56px; font-size: 1.05rem; line-height: 1.45; min-height: 56px; }
.sos__steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--star); display: grid; place-items: center; font-weight: 800; }
.sos__breathe { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: var(--plum); color: var(--on-plum); border-radius: 18px; padding: 16px; }
.sos__breathe p { margin: 0; font-weight: 700; }
.sos__circle { width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle, var(--star), var(--honey)); display: grid; place-items: center; color: var(--on-star); font-weight: 800; font-size: 0.85rem; animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0% { transform: scale(0.7); } 40% { transform: scale(1); } 100% { transform: scale(0.7); } }
.sos__more, .sos__help { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.sos__help { color: var(--ink-muted); }

/* ---------------- shared page sections */
.hhow { padding: clamp(56px, 8vw, 100px) 0; scroll-margin-top: var(--hdr-h); }
.hhow__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.hhow h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); max-width: 18ch; margin-bottom: 14px; }
.hhow p { line-height: 1.6; max-width: 56ch; }
.hhow .hticks { margin-top: 18px; }
.hhow__tips { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--sc-e1); }
.hhow__tips h3 { font-size: 1.3rem; margin-bottom: 10px; }
.hhow__tips ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.hhow__more { margin: 16px 0 0; font-weight: 700; }
@media (max-width: 860px) { .hhow__grid { grid-template-columns: 1fr; } }
.hready, .hguides { padding: clamp(48px, 7vw, 90px) 0; background: var(--paper-sunk); }
.hready h2, .hguides h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 8px; }
.hguides__lede { margin: 0 0 20px; color: var(--ink-muted); font-weight: 600; }
.hready__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 860px) { .hready__grid { grid-template-columns: repeat(2, 1fr); } }
.hready__card, .hguides__card { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); text-align: center; transition: transform 140ms var(--sc-ease-out), border-color 140ms; }
.hready__card:hover, .hguides__card:hover { transform: translateY(-2px); border-color: var(--ink); }
.hready__card img { width: 84px; height: 84px; object-fit: contain; }
.hready__card strong, .hguides__card strong { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.hready__card span, .hguides__card span { font-size: 0.85rem; color: var(--ink-muted); font-weight: 700; }
.hguides__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.hguides__card img { width: 72px; height: 72px; object-fit: contain; }
.helper .hfaq, .hguide .hfaq { padding: clamp(56px, 8vw, 100px) 0 20px; max-width: 52rem; }
.hfaq h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); margin-bottom: 18px; }
.hfaq details { border-bottom: 1px solid var(--line); }
.hfaq summary { cursor: pointer; padding: 18px 0; font-family: var(--sc-font-display); font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.hfaq summary::-webkit-details-marker { display: none; }
.hfaq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.hfaq details[open] summary::after { content: "−"; }
.hfaq details p { margin: 0 0 18px; line-height: 1.6; max-width: 62ch; }
.hclose { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 110px); }
.hclose__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 44px); }
.hclose__grid img { width: clamp(110px, 16vw, 200px); height: auto; }
.hclose h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin-bottom: 10px; max-width: 24ch; }
.hclose p { margin: 0 0 16px; line-height: 1.6; max-width: 60ch; }
@media (max-width: 640px) { .hclose__grid { grid-template-columns: 1fr; } }

/* ---------------- guide pages (behaviour + routine) */
.hguide { padding-bottom: 40px; }
.hguide__head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 52px) 0 clamp(16px, 3vw, 28px); }
.hguide__head h1 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem); font-weight: 700; max-width: 18ch; }
.hguide__head p { font-size: 1.12rem; line-height: 1.55; max-width: 56ch; margin: 14px 0 0; }
.hguide__head img { width: clamp(110px, 16vw, 200px); height: auto; }
@media (max-width: 640px) { .hguide__head { grid-template-columns: 1fr; } .hguide__head img { order: -1; width: 110px; } }
.hguide__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hguide section { padding: clamp(24px, 3.4vw, 40px) 0; border-top: 1px solid var(--line); }
.hguide h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); margin-bottom: 14px; }
.hages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hages div { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.hages h3 { font-size: 1.1rem; margin-bottom: 6px; }
.hages p { margin: 0; line-height: 1.55; }
@media (max-width: 760px) { .hages { grid-template-columns: 1fr; } }
.hsay { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hsay li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.hsay li > b { width: 30px; height: 30px; border-radius: 50%; background: var(--star); display: grid; place-items: center; }
.hsay p { margin: 0 0 8px; font-weight: 800; }
.hsay__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hsay__pair span { border-radius: 12px; padding: 10px 12px; font-family: var(--sc-font-display); font-weight: 600; line-height: 1.3; }
.hsay__pair span b { display: block; font-family: var(--sc-font-text); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hsay__yes { background: var(--plum); color: var(--on-plum); }
.hsay__yes b { color: var(--star); }
.hsay__no { background: var(--tangerine-soft); color: #6B2A0B; }
.hsay__no b { color: var(--tangerine); }
@media (max-width: 600px) { .hsay__pair { grid-template-columns: 1fr; } }
.hband { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--plum); color: var(--on-plum); border-radius: var(--r-lg); padding: 18px 22px; margin: 8px 0; }
.hband img { width: 72px; height: auto; }
.hband p { margin: 0; line-height: 1.5; }
@media (max-width: 640px) { .hband { grid-template-columns: 1fr; } }
.hroutine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .hroutine { grid-template-columns: 1fr; } }
.hroutine > div { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--sc-e1); border-top: 8px solid var(--star); }
.hroutine h3 { font-size: 1.15rem; margin-bottom: 10px; }
.hroutine ol { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.hroutine li { display: grid; grid-template-columns: 62px 36px 1fr; gap: 8px; align-items: center; font-weight: 800; font-size: 0.9rem; }
.hroutine li span { color: var(--ink-muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.hroutine li img { width: 34px; height: 34px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .rbplay__stage.is-in, .flipc .flipc__say, .flipc .flipc__not, .sos__panel { animation: none !important; } .sos__circle { animation: none; } .rbchart li i::after, .saycard__face { transition: none; } }
