/* ai.yoga.org practice modes — "Breath & focus" (2026-11-28). Calm, yoga.org dusk tokens; no arcade colours. */
/* ---- opening screen ---- */
.e-modes { margin: 14px 0 4px; }
.e-modes .e-mode-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.e-modes .e-mode-head small { font-size: 0.78rem; color: var(--d-muted, #b9c2b5); }
.e-mode-grid { grid-template-columns: 1fr 1fr; }
.e-mode-card .e-mode-ic { display: block; height: 62px; background: radial-gradient(ellipse at 50% 50%, #1e4838 0%, #0a2219 75%); }
.e-mode-card .e-mode-ic svg { display: block; width: 100%; height: 100%; opacity: .9; transition: opacity .2s; }
.e-mode-card[aria-checked="true"] .e-mode-ic svg { opacity: 1; }
.e-mode-card b small { display: block; margin-top: 2px; font: 400 0.72rem/1.25 var(--d-sans, system-ui, sans-serif); color: var(--d-muted, #b9c2b5); letter-spacing: .02em; }
.e-mode-note { margin: 8px 0 0; font-size: 0.9rem; color: var(--d-soft, #efe7d6); min-height: 1.3em; }
.e-mode-opts { margin: 10px 0 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(240,205,136,0.28); background: rgba(7,31,24,0.5); display: grid; gap: 8px; }
.e-mode-opts[hidden] { display: none; }
.e-mo-row { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.e-mo-row > span { min-width: 58px; font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--d-gold, #f0cd88); }
.e-mo-row [role="radiogroup"] { display: flex; gap: 6px; flex-wrap: wrap; }
.e-mo { min-height: 36px; min-width: 44px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(240,205,136,0.35); background: transparent; color: var(--d-soft, #efe7d6); font: inherit; font-size: 0.9rem; cursor: pointer; }
.e-mo[aria-checked="true"] { background: var(--d-gold, #f0cd88); border-color: var(--d-gold, #f0cd88); color: #102b21; font-weight: 600; }
.e-mo:focus-visible { outline: 2px solid var(--d-gold, #f0cd88); outline-offset: 2px; }
.e-mode-fine { margin: 2px 0 0; font-size: 0.74rem; color: var(--d-muted, #b9c2b5); }
#gate.e-has-mode #length-pick, #gate.e-has-mode #intention-note { display: none; }

/* ---- room in a mode ---- */
.room.e-mode #segs { visibility: hidden; }
.room.e-mode .room-media { grid-template-columns: minmax(0, .56fr) minmax(0, .44fr); }
@media (max-width: 540px) { .room.e-mode .room-media { grid-template-columns: 1fr; grid-template-rows: minmax(0, .58fr) minmax(0, .42fr); } }
@media (max-height: 560px) and (orientation: landscape) { .room.e-mode .room-media { grid-template-columns: minmax(0, .56fr) minmax(0, .44fr); grid-template-rows: 1fr; } }
.room.e-mode .pane.guide #teacher-demo, .room.e-mode .pane.guide #guide-loop, .room.e-mode .pane.guide #guide-cap, .room.e-mode .pane.guide .pane-label, .room.e-mode .pane.guide .pane-bottom { display: none !important; }
.room.e-mode #skip, .room.e-mode [data-pref="slower"], .room.e-mode #talk, .room.e-mode #replay, .room.e-mode #coming, .room.e-mode #seen-pill, .room.e-mode #hold-pill, .room.e-mode #breath-ring, .room.e-mode #coach-line, .room.e-mode #badge-tray, .room.e-mode #wrong-cue, .room.e-mode #listen-card { display: none !important; }
.e-mode-stage { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; padding: 12px 14px 10px; background: radial-gradient(ellipse at 50% 45%, #183f30 0%, #0b2419 62%, #081e15 100%); color: var(--d-soft, #efe7d6); }
.e-mode-stage[hidden] { display: none; }
.m-top { display: flex; align-items: center; gap: 10px; }
.m-top .m-ic { flex: 0 0 auto; width: 52px; height: 30px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(240,205,136,0.3); background: radial-gradient(ellipse at 50% 50%, #1e4838 0%, #0a2219 75%); }
.m-top .m-ic svg { width: 100%; height: 100%; display: block; }
.m-top h3 { margin: 0; font: 400 1.15rem/1.2 var(--d-serif, Georgia, serif); color: var(--d-cream, #f6efe1); }
.m-top > div { flex: 1 1 auto; min-width: 0; }
.m-snd { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 11px; border-radius: 99px; border: 1px solid rgba(240,205,136,0.35); background: rgba(7,31,24,0.6); color: var(--d-soft, #efe7d6); font: inherit; font-size: 0.8rem; cursor: pointer; }
.m-snd[aria-pressed="true"] { border-color: rgba(240,205,136,0.7); }
.m-body { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.m-foot { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; font-size: 0.86rem; color: var(--d-muted, #b9c2b5); }
.m-stat b { color: var(--d-cream, #f6efe1); font-weight: 600; font-variant-numeric: tabular-nums; }
.m-follow { padding: 3px 10px; border-radius: 99px; border: 1px solid rgba(185,194,181,0.35); font-size: 0.78rem; transition: border-color .6s, color .6s, background .6s; }
.m-follow[data-on="1"] { border-color: rgba(240,205,136,0.6); color: var(--d-cream, #f6efe1); background: rgba(240,205,136,0.1); }
.m-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
/* box */
.e-mode-stage[data-mode="box"] .m-body { padding: 22px 26px 20px; }
.m-box { position: relative; height: 100%; max-height: 330px; aspect-ratio: 1; max-width: 100%; }
.m-sq { width: 100%; height: 100%; overflow: visible; }
.m-sq-bg { fill: rgba(240,205,136,0.04); stroke: rgba(240,205,136,0.16); stroke-width: 3; }
.m-side { fill: none; stroke: rgba(240,205,136,0.22); stroke-width: 4; stroke-linecap: round; transition: stroke .6s; }
.m-side.done { stroke: rgba(240,205,136,0.45); }
.m-side.on { stroke: var(--d-gold, #f0cd88); }
.m-dot { fill: var(--d-cream, #f6efe1); }
.m-dot-halo { fill: rgba(240,205,136,0.22); }
.m-box-c { position: absolute; inset: 22% 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.m-phase { font: 400 clamp(0.95rem, 3.4vmin, 1.5rem)/1.15 var(--d-serif, Georgia, serif); color: var(--d-cream, #f6efe1); }
.m-num { font: 300 clamp(1.8rem, 9vmin, 3.6rem)/1 var(--d-serif, Georgia, serif); color: var(--d-gold, #f0cd88); font-variant-numeric: tabular-nums; }
.m-lab { position: absolute; font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--d-muted, #b9c2b5); }
.m-lab-l { left: -4px; top: 50%; transform: translate(-100%, -50%) rotate(-90deg); transform-origin: right center; left: 2px; }
.m-lab-t { top: -2px; left: 50%; transform: translate(-50%, -100%); }
.m-lab-r { right: 2px; top: 50%; transform: translate(100%, -50%) rotate(90deg); transform-origin: left center; }
.m-lab-b { bottom: -2px; left: 50%; transform: translate(-50%, 100%); }
.m-box[data-phase="in"] .m-lab-l, .m-box[data-phase="hold1"] .m-lab-t, .m-box[data-phase="out"] .m-lab-r, .m-box[data-phase="hold2"] .m-lab-b { color: var(--d-gold, #f0cd88); }
/* count */
.m-count { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; }
.m-big { font: 300 clamp(3.2rem, min(26vmin, 15vh), 11rem)/0.95 var(--d-serif, Georgia, serif); color: var(--d-cream, #f6efe1); font-variant-numeric: tabular-nums; transition: opacity .5s, transform 1.2s ease; }
.m-count[data-io="in"] .m-big { transform: scale(1.04); }
.m-count[data-io="out"] .m-big { transform: scale(0.97); opacity: .92; }
.m-count[data-reset="1"] .m-big { opacity: .55; }
.m-io { font-size: 0.8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--d-gold, #f0cd88); }
.m-dots { display: flex; gap: 7px; margin-top: 6px; }
.m-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(240,205,136,0.18); transition: background .5s; }
.m-dots i.on { background: var(--d-gold, #f0cd88); }
.m-lost { min-height: 36px; padding: 5px 14px; border-radius: 99px; border: 1px solid rgba(240,205,136,0.5); background: rgba(7,31,24,0.6); color: var(--d-cream, #f6efe1); font: inherit; font-size: 0.84rem; cursor: pointer; }
/* games */
.m-game { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; width: 100%; border-radius: 14px; transition: background .5s; }
.m-game[data-flash="hit"] { background: rgba(240,205,136,0.07); }
.m-prompt { text-align: center; }
.m-say { display: block; font: 400 clamp(1.5rem, 6.4vmin, 2.8rem)/1.1 var(--d-serif, Georgia, serif); color: var(--d-cream, #f6efe1); }
.m-sub { display: block; min-height: 1.2em; margin-top: 4px; font-size: 0.86rem; color: var(--d-muted, #b9c2b5); }
.m-pad { position: relative; width: min(150px, 48%); aspect-ratio: 3 / 2; border-radius: 12px; border: 1px solid rgba(240,205,136,0.2); }
.m-pad .m-me { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--d-cream, #f6efe1); box-shadow: 0 0 0 5px rgba(240,205,136,0.15); transition: transform .12s linear, opacity .3s; }
.m-pad .m-me[data-seen="0"] { opacity: .25; }
.m-pt { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; border: 1px solid rgba(240,205,136,0.4); }
.m-pt[data-t="top-left"] { left: 8%; top: 10%; } .m-pt[data-t="top"] { left: 50%; top: 10%; } .m-pt[data-t="top-right"] { left: 92%; top: 10%; }
.m-pt[data-t="left"] { left: 8%; top: 50%; } .m-pt[data-t="right"] { left: 92%; top: 50%; }
.m-pt[data-t="bottom-left"] { left: 8%; top: 90%; } .m-pt[data-t="bottom"] { left: 50%; top: 90%; } .m-pt[data-t="bottom-right"] { left: 92%; top: 90%; }
.m-pt.on { background: var(--d-gold, #f0cd88); border-color: var(--d-gold, #f0cd88); }
.m-ring { width: min(120px, 34%); aspect-ratio: 1; }
.m-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.m-ring-bg { fill: none; stroke: rgba(240,205,136,0.14); stroke-width: 5; }
.m-ring-fg { opacity: 0; transition: opacity .2s; fill: none; stroke: var(--d-gold, #f0cd88); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.m-prompt-big .m-say { font-size: clamp(1.7rem, 7.5vmin, 3.2rem); }
/* screen-edge targets for "Look where I say" (fixed over the whole room; never catch taps) */
.e-mode-targets { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.e-mode-targets[hidden] { display: none; }
.e-mode-targets .m-center { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid rgba(240,205,136,0.55); opacity: 0; transition: opacity .3s; }
.e-mode-targets .m-center.on { opacity: 1; }
.m-tg { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; transition: opacity .25s; }
.m-tg i { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #f6efe1 0 22%, rgba(240,205,136,0.85) 24% 40%, rgba(240,205,136,0.18) 42% 100%); box-shadow: 0 0 22px rgba(240,205,136,0.45); }
.m-tg em { font-style: normal; font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--d-cream, #f6efe1); background: rgba(7,31,24,0.75); padding: 2px 8px; border-radius: 99px; }
.m-tg.on { opacity: 1; animation: m-pulse 1.6s ease-in-out infinite; }
.m-tg.hit { opacity: 1; animation: none; }
.m-tg.hit i { background: radial-gradient(circle, #f6efe1 0 30%, rgba(240,205,136,0.95) 32% 100%); }
.m-tg.miss { opacity: .35; animation: none; }
.m-tg[data-t="top-left"] { left: 18px; top: 14px; } .m-tg[data-t="top"] { left: 50%; top: 14px; transform: translateX(-50%); } .m-tg[data-t="top-right"] { right: 18px; top: 14px; }
.m-tg[data-t="left"] { left: 18px; top: 50%; transform: translateY(-50%); } .m-tg[data-t="right"] { right: 18px; top: 50%; transform: translateY(-50%); }
.m-tg[data-t="bottom-left"] { left: 18px; bottom: 18px; flex-direction: column-reverse; } .m-tg[data-t="bottom"] { left: 50%; bottom: 18px; transform: translateX(-50%); flex-direction: column-reverse; } .m-tg[data-t="bottom-right"] { right: 18px; bottom: 18px; flex-direction: column-reverse; }
@keyframes m-pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
@media (max-width: 540px) {
  .e-mode-targets .m-center { display: none; }
  .e-mode-stage { padding: 8px 10px 7px; }
  .m-top .m-ic { width: 40px; height: 24px; }
  .m-top .e-eyebrow { display: none; }
  .m-top h3 { font-size: 1rem; }
  .m-snd { min-height: 30px; padding: 3px 9px; font-size: 0.74rem; }
  .m-foot { font-size: 0.78rem; gap: 4px 10px; }
  .m-lost { min-height: 32px; padding: 4px 12px; font-size: 0.8rem; }
  .m-pad { width: min(110px, 40%); }
  .m-sub { font-size: 0.78rem; }
  .m-tg i { width: 26px; height: 26px; }
  .m-tg em { font-size: 0.62rem; }
}
@media (prefers-reduced-motion: reduce) {
  .m-tg.on { animation: none; }
  .m-big, .m-side, .m-follow, .m-game, .m-pad .m-me { transition: none !important; }
  .m-count[data-io] .m-big { transform: none; }
}
.e-mode-stage[data-rm="1"] .m-big { transition: none; transform: none; }
.e-mode-stage[data-rm="1"] .m-pad .m-me { transition: none; }
/* finish screen */
.e-mode-sum { display: grid; gap: 10px; margin: 6px 0 4px; text-align: left; }
.e-mode-sum .e-sum-card b { display: block; }
/* ---- 2026-11-28: four top-level paths (intention first). Restyle freely: logic only needs #path-pick [data-path],
 * aria-checked, and #gate[data-path] (movement | breath | meditation | focus) for showing the right second step. ---- */
.e-paths { margin: 4px 0 12px; }
.e-paths .e-eyebrow { margin-bottom: 8px; }
.e-path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.e-path { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; text-align: left; border-radius: 14px; border: 1px solid rgba(240,205,136,0.28); background: rgba(7,31,24,0.55); color: var(--d-soft, #efe7d6); font: inherit; cursor: pointer; min-height: 44px; transition: border-color .2s, background .2s; }
.e-path:hover { border-color: rgba(240,205,136,0.55); }
.e-path[aria-checked="true"] { border-color: var(--d-gold, #f0cd88); background: rgba(240,205,136,0.1); box-shadow: inset 0 0 0 1px rgba(240,205,136,0.45); }
.e-path:focus-visible { outline: 2px solid var(--d-gold, #f0cd88); outline-offset: 2px; }
.e-path-ic { flex: 0 0 auto; width: 34px; height: 34px; color: var(--d-gold, #f0cd88); }
.e-path-ic svg { width: 100%; height: 100%; display: block; }
.e-path-t { display: flex; flex-direction: column; min-width: 0; }
.e-path-t b { font: 400 1.05rem/1.15 var(--d-serif, Georgia, serif); color: var(--d-cream, #f6efe1); }
.e-path-t em { font-style: normal; font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--d-gold, #f0cd88); margin-top: 2px; }
.e-path-t small { font-size: 0.8rem; line-height: 1.3; color: var(--d-muted, #b9c2b5); margin-top: 4px; }
#gate:not([data-path="movement"]) #intention, #gate:not([data-path="movement"]) #length-pick { display: none; }
#gate[data-path="movement"] #modes { display: none; }
#gate .e-mode-card[hidden], #gate .e-mode-head[hidden], #gate .e-mode-grid[hidden] { display: none; }
#gate[data-path="breath"] #mode-pick, #gate[data-path="meditation"] #mode-pick { display: none; }
@media (max-width: 400px) { .e-path { padding: 9px 10px; gap: 8px; } .e-path-ic { width: 28px; height: 28px; } .e-path-t small { font-size: 0.76rem; } }
.e-q { margin: 0 0 8px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-gold, #f0cd88); }
.e-modes .e-mode-head .e-q { margin: 0; }
/* count: size the numeral to the space the stage actually has, so dots never run into the stats on short phones */
.e-mode-stage[data-mode="count"] .m-body { container-type: size; overflow: hidden; padding: 4px 0; }
@supports (font-size: 1cqh) { .m-count .m-big { font-size: clamp(2.2rem, calc(100cqh - 52px), 11rem); } }

/* No-camera modes (box breathing, breath counting): the stage takes the whole practice area; no mirror, no demo, no recording question */
.room.e-mode.e-nocam .room-media { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.room.e-mode.e-nocam .pane.student { display: none !important; }
.room.e-mode.e-nocam .e-mode-stage { padding: 16px 20px 12px; }
.room.e-mode.e-nocam .m-box { max-height: min(60vh, 440px); }
#gate[data-nocam="1"] #beta-optin, #gate[data-nocam="1"] .e-why, #gate[data-nocam="1"] .e-start-copy > h2 + p, #gate[data-nocam="1"] .prep-fine, #gate[data-nocam="1"] #live-demo { display: none; }

/* games: size the prompt and the ring/pad to the height the stage really has (short phone viewports, e.g. 390x664) */
.e-mode-stage[data-mode="look"] .m-body, .e-mode-stage[data-mode="move"] .m-body { container-type: size; overflow: hidden; padding: 2px 0; }
@supports (font-size: 1cqh) {
  .m-game { gap: 2cqh; }
  .m-game .m-say, .m-prompt-big .m-say { font-size: clamp(1.2rem, 14cqh, 2.8rem); }
  .m-game .m-sub { margin-top: 2px; }
  .m-ring { width: auto; height: clamp(40px, 38cqh, 120px); }
  .m-pad { width: auto; height: clamp(46px, 38cqh, 100px); }
}
