/* Move → "Start working out" (13 Oct 2026): the Start card, its questions,
   the workout and the guided player — pages/health-go.js. The Shmangus feel
   (.claude/skills/shmangus-feel): candy on a lip (games.css .arc-candy),
   44 px targets with a rounded border, the buddy hosting, a still page. The
   phone draws the same in components/health/go/. */

.mg-card { position: relative; padding: 16px; overflow: visible; border-bottom-width: 5px; scroll-margin-top: calc(64px + env(safe-area-inset-top)); }
.mg-card.playing { padding: 14px 14px 16px; }
.mg-card .grow { flex: 1; min-width: 0; }
.mg-card .center { text-align: center; justify-content: center; }

/* the buddy */
.mg-buddy { flex: none; display: grid; place-items: center; }
.mg-hello-row, .mg-head, .mg-buddyrow { display: flex; align-items: center; gap: 12px; }
.mg-hello { font: 800 17px/22px var(--arc-font); color: var(--ink); overflow-wrap: anywhere; }
.mg-hello.grow { flex: 1; min-width: 0; }
.mg-buddyrow { gap: 10px; min-height: 44px; }
.mg-buddyrow .mg-hello { font-size: 15px; line-height: 20px; flex: 1; min-width: 0; }

/* the big candy buttons */
.mg-card .arc-candy.mg-big { display: flex; width: 100%; min-height: 58px; font-size: 18px; margin-top: 14px; }
.mg-card .arc-candy.plain { min-height: 46px; font-size: 15px; }
.mg-card .arc-candy.mg-danger { --cink: var(--danger); }
.mg-row2 { display: flex; gap: 10px; margin-top: 8px; }
.mg-row2 .arc-candy { margin-top: 0; }

.mg-last { display: block; margin: 10px auto 0; max-width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 999px; background: var(--bg); color: var(--ink-muted); font-family: inherit; font-size: 13.5px; font-weight: 700; line-height: 40px; white-space: normal; cursor: pointer; overflow-wrap: break-word; }
.mg-last:hover { color: var(--ink); }
.mg-last-go { margin-right: 6px; }
.mg-link { display: block; margin: 4px auto 0; min-height: 44px; padding: 0 14px; border: none; background: none; color: var(--ink-muted); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

.mg-later { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.mg-later-emoji { font-size: 22px; flex: none; }
.mg-later-txt { flex: 1; min-width: 0; }
.mg-later-title { font-size: 15px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.mg-later-sub { font-size: 13px; color: var(--ink-muted); }

/* the questions */
.mg-ask { font-size: 13px; font-weight: 800; color: var(--ink-muted); margin: 14px 0 7px 2px; }
.mg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-solid, var(--surface)); color: var(--ink); font-family: inherit; font-size: 14.5px; font-weight: 700; line-height: 1; cursor: pointer; transition: transform 120ms var(--arc-spring), background 120ms; -webkit-tap-highlight-color: transparent; }
.mg-chip.sm { min-height: 44px; padding: 0 11px; font-size: 14px; }
.mg-chip:hover { border-color: var(--ink-faint); }
.mg-chip:active { transform: scale(0.96); }
.mg-chip.on { background: var(--arc-mint); border-color: #168F66; box-shadow: 0 3px 0 #168F66; color: var(--arc-cocoa); }
.mg-chip:focus-visible { outline: 3px solid var(--ink-muted); outline-offset: 2px; }
.mg-emoji { font-size: 17px; line-height: 1; }
.mg-err { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--danger); }

/* round buttons with a border */
.mg-round { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-bottom-width: 3px; background: var(--surface-solid, var(--surface)); color: var(--ink); cursor: pointer; transition: transform 70ms ease-out; -webkit-tap-highlight-color: transparent; }
.mg-round svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 40; }
.mg-round:active { transform: translateY(2px); }
.mg-round:disabled { opacity: 0.4; cursor: default; }
.mg-round.go { background: var(--arc-mint); border-color: #168F66; color: var(--arc-cocoa); }
.mg-round:focus-visible { outline: 3px solid var(--ink-muted); outline-offset: 2px; }

/* making */
.mg-making { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 0; }
.mg-sub { font-size: 13px; color: var(--ink-muted); font-weight: 700; }
.mg-dots { display: flex; gap: 6px; }
.mg-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--arc-mint); animation: mg-dot 1s ease-in-out infinite; }
.mg-dots i:nth-child(2) { animation-delay: .15s; }
.mg-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mg-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-6px); opacity: 1; } }

/* the workout, before it starts */
.mg-bigemoji { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: color-mix(in srgb, var(--arc-mint) 18%, transparent); border: 1px solid color-mix(in srgb, var(--arc-mint) 40%, transparent); }
.mg-title { font: 900 21px/1.15 var(--arc-font); color: var(--ink); overflow-wrap: anywhere; }
.mg-line { font-size: 14px; line-height: 19px; color: var(--ink-muted); margin-top: 8px; }
.mg-phase { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-faint); margin: 14px 0 4px; }
.mg-ex, .mg-swaprow, .mg-next { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.mg-swaprow { width: 100%; min-height: 48px; border: none; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
.mg-swaprow:hover { background: color-mix(in srgb, var(--arc-mint) 10%, transparent); }
.mg-swaprow .mg-round { pointer-events: none; }
.mg-ex-txt { flex: 1; min-width: 0; }
.mg-ex-name { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 20px; overflow-wrap: anywhere; }
.mg-ex-sub { font-size: 13px; color: var(--ink-muted); white-space: normal; overflow-wrap: break-word; }
.mg-coin { flex: none; border-radius: 50%; display: grid; place-items: center; line-height: 1; background: color-mix(in srgb, var(--arc-mint) 18%, transparent); border: 1px solid color-mix(in srgb, var(--arc-mint) 40%, transparent); }

/* the end */
.mg-end, .mg-quit { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 6px; }
.mg-end .mg-chips { justify-content: center; }
.mg-stats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mg-stat { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 800; color: var(--ink); }
.mg-quit .mg-row2 { width: 100%; }

/* the player */
.mg-player { display: flex; flex-direction: column; gap: 12px; }
.mg-top { display: flex; align-items: center; gap: 10px; }
.mg-topmid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mg-track { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.mg-fill { height: 8px; border-radius: 4px; background: var(--arc-mint); transition: width .3s ease-out; }
.mg-toptext { font-size: 12.5px; font-weight: 700; color: var(--ink-muted); text-align: center; font-variant-numeric: tabular-nums; }
.mg-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mg-name { font: 900 26px/1.15 var(--arc-font); color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.mg-setline { font-size: 14px; font-weight: 700; color: var(--ink-muted); text-align: center; }
.mg-count { display: flex; flex-direction: column; align-items: center; min-width: 110px; }
.mg-num { font: 900 54px/1.1 var(--arc-font); color: var(--ink); font-variant-numeric: tabular-nums; }
.mg-num.big { font-size: 72px; }
.mg-unit { font-size: 13px; font-weight: 700; color: var(--ink-muted); margin-top: -2px; }
.mg-repsrow { display: flex; align-items: center; gap: 18px; }
.mg-ring { position: relative; flex: none; }
.mg-ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mg-ring-track { stroke: var(--border); }
.mg-ring-num { position: absolute; inset: 0; display: grid; place-items: center; font: 900 44px/1 var(--arc-font); color: var(--ink); font-variant-numeric: tabular-nums; }
.mg-cue { font-size: 14px; line-height: 20px; color: var(--ink-muted); text-align: center; padding: 0 6px; max-width: 520px; }
.mg-donewrap { position: relative; align-self: stretch; }
.mg-donewrap .arc-candy.mg-big { margin-top: 2px; }
.mg-rest-word { font: 900 22px/1.1 var(--arc-font); color: #2273B8; }
[data-theme="dark"] .mg-rest-word { color: var(--arc-sky); }
.mg-restbtns { display: flex; align-items: center; gap: 10px; align-self: stretch; }
.mg-restbtns .arc-candy { margin-top: 0; }
.mg-next { align-self: stretch; border: 1px solid var(--border); border-radius: 16px; padding: 10px; background: var(--bg); }
.mg-swapbox { align-self: stretch; border: 1px solid var(--border); border-radius: 16px; padding: 6px 10px; background: var(--bg); }
.mg-tools { display: flex; justify-content: center; gap: 26px; }
.mg-tool { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 52px; }
.mg-tool span { font-size: 11.5px; font-weight: 700; color: var(--ink-muted); }
.mg-nextline { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); text-align: center; white-space: normal; overflow-wrap: break-word; }

/* the rings under it */
.hl-ring.mg { width: 84px; height: 84px; }
.hl-ring.mg .hl-ring-num { font-size: 22px; line-height: 26px; }
.hl-ring.mg .hl-ring-sub { font-size: 10.5px; margin-top: -1px; }
.mg-rings .hl-rings { gap: 10px; }
.mg-rings .hl-side .btn { align-self: flex-start; }
.mg-ddays .hl-dday { width: 30px; height: 30px; }

@media (max-width: 359px) {
  .mg-card { padding: 13px; }
  .mg-hello { font-size: 15.5px; line-height: 20px; }
  .mg-chip { padding: 0 10px; font-size: 13.5px; }
  .mg-name { font-size: 22px; }
  .mg-num.big { font-size: 60px; }
  .hl-ring.mg { width: 74px; height: 74px; }
  .hl-ring.mg .hl-ring-num { font-size: 19px; line-height: 22px; }
  .mg-ddays .hl-dday { width: 26px; height: 26px; }
  .mg-tools { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-dots i { animation: none; opacity: .8; }
  .mg-chip, .mg-fill { transition: none; }
}
