/* Scene 6 - focus: the launcher becomes a timer ring while the room (and the world in it) goes quiet.
 * Reference: lib/focus/focus_launcher.dart (FOCUS NEXT / DEEP WORK / SESSION COMPLETE), prototypes/trading-journal dial. */
.focus-slot { left: max(40%, calc(var(--gutter) + min(var(--measure), 38vw) + 24px)); right: 108px; top: 84px; bottom: 36px; z-index: 3; }
.focus-copy { width: min(var(--measure), 38vw); }

.fs-room {
  --room: color-mix(in srgb, var(--career-ink) 34%, #0e0a14); --rk: #F8EEF5; --rk2: rgba(248, 238, 245, 0.68); --rk3: rgba(248, 238, 245, 0.14);
  position: absolute; inset: 0; border-radius: 40px; overflow: hidden; contain: layout paint;
  background: color-mix(in srgb, var(--surface) 58%, transparent); box-shadow: inset 0 0 0 1px var(--line2), var(--shadow-card);
}
[data-theme="dark"] .fs-room { --room: color-mix(in srgb, var(--bg) 40%, #000); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fs-room { --room: color-mix(in srgb, var(--bg) 40%, #000); } }
.fs-night { position: absolute; inset: 0; opacity: 0; will-change: opacity;
  background: radial-gradient(52% 52% at 50% 50%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%), var(--room); }
.fs-world { position: absolute; inset: 0; }
.fs-world .cx { --ch: 42px; --cf: 13.5px; will-change: transform, opacity; }
.fs-stack { position: absolute; inset: 0; display: grid; place-items: center; }
.fs-stack > * { grid-area: 1 / 1; }

/* the launcher card (FOCUS NEXT) */
.fs-launch { width: min(344px, 88%); padding: 22px 22px 20px; border-radius: 32px; background: var(--surface); will-change: transform, opacity;
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); font-variation-settings: 'ROND' 60; z-index: 3; }
.fs-lab { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); }
.fs-ttl { margin-top: 8px; font-size: 25px; line-height: 1.14; font-weight: 500; font-variation-settings: 'ROND' 100; }
.fs-sub { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.fs-sub .dot { width: 8px; height: 8px; }
.fs-durs { display: flex; gap: 8px; margin-top: 18px; }
.fs-dur { flex: 1; padding: 10px 4px 9px; border-radius: 18px; text-align: center; background: var(--inset); font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.fs-dur b { display: block; font-size: 21px; line-height: 1.1; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fs-dur.on { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.fs-dur.on b { color: var(--accent-ink); }
.fs-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin-top: 18px; border-radius: 26px;
  background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 700;
  transition: transform var(--dur-spatial-fast) var(--ease-spatial-fast), border-radius var(--dur-spatial-fast) var(--ease-spatial-fast), background var(--dur-effects) var(--ease-effects); }
.fs-btn .ms { font-size: 22px; font-variation-settings: 'FILL' 1; }
.fs-btn.is-press { transform: scale(0.95); border-radius: 18px; }

/* the dial */
.fs-dial { position: relative; width: var(--D, 400px); height: var(--D, 400px); will-change: transform, opacity; z-index: 2; opacity: 0; }
.fs-dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fs-glow { fill: url(#fs-glow); }
.fs-trk { fill: none; stroke: var(--rk3); stroke-width: 16; }
.fs-arc { fill: none; stroke: url(#fs-grad); stroke-width: 16; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 200px 200px; }
.fs-tick { stroke: var(--rk3); stroke-width: 3; stroke-linecap: round; transition: stroke 0.25s; }
.fs-tick.on { stroke: color-mix(in srgb, var(--accent) 80%, #fff); }
.fs-head { fill: #fff; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 90%, transparent)); }
.fs-pulse { fill: none; stroke: var(--accent); stroke-width: 3; opacity: 0; transform-origin: 200px 200px; }
.fs-dtx { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--rk); font-variation-settings: 'ROND' 80; }
.fs-dlab { font-size: calc(var(--D, 400px) * 0.032); font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 70%, #fff); }
.fs-time { margin: calc(var(--D, 400px) * 0.012) 0; font-size: calc(var(--D, 400px) * 0.205); line-height: 1; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; font-variation-settings: 'ROND' 100; }
.fs-dtask { max-width: 74%; font-size: calc(var(--D, 400px) * 0.044); font-weight: 600; color: var(--rk2); }
.fs-dsub { margin-top: calc(var(--D, 400px) * 0.012); font-size: calc(var(--D, 400px) * 0.034); font-weight: 600; color: var(--rk2); opacity: 0.8; }

/* the finish card (SESSION COMPLETE) */
.fs-fin { width: min(344px, 88%); padding: 22px 22px 20px; border-radius: 32px; background: var(--surface); text-align: center; opacity: 0; will-change: transform, opacity;
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); font-variation-settings: 'ROND' 60; z-index: 4; }
.fs-fin svg { width: 84px; height: 84px; margin: 0 auto 10px; overflow: visible; }
.fs-fin svg path { fill: var(--accent); }
.fs-fin .ms-ok { position: absolute; left: 50%; top: 22px; width: 84px; height: 84px; margin-left: -42px; display: grid; place-items: center; font-size: 46px; line-height: 84px; text-align: center; color: var(--on-accent); font-variation-settings: 'wght' 700; }
.fs-fq { margin-top: 8px; font-size: 20px; line-height: 1.22; font-weight: 500; font-variation-settings: 'ROND' 100; }
.fs-fb { display: flex; gap: 10px; margin-top: 18px; }
.fs-fb .fs-btn { flex: 1; margin-top: 0; height: 48px; font-size: 14.5px; }
.fs-fb .fs-keep { background: var(--inset); color: var(--ink2); }
.fs-fb .fs-done .ms { display: none; }
.fs-fin.ok .fs-done .ms { display: inline-block; }

@media (max-width: 759px) {
  .focus-slot { left: 10px; right: 10px; top: 232px; bottom: 58px; }
  .focus-copy { width: auto; }
  .focus-copy .lead, .focus-copy .ticks { display: none; }
  .static .focus-copy .lead, .static .focus-copy .ticks { display: block; }
  .static #focus .stage { min-height: 1060px; }
  .static #focus .focus-slot { top: 420px; bottom: 24px; }
  .fs-room { border-radius: 32px; }
  .fs-world .cx { --ch: 36px; --cf: 12px; }
  .fs-launch, .fs-fin { padding: 18px 18px 16px; border-radius: 28px; }
  .fs-ttl { font-size: 22px; }
  .fs-btn { height: 48px; margin-top: 14px; }
  .fs-durs { margin-top: 14px; }
}
.static .fs-room { min-height: 440px; }
