/* Neumo web player. Sizes, colours and timings follow the app's player;
   each block names its Dart source. */

@font-face { font-family: "AllRoundGothic"; src: url("fonts/AllRoundGothic-Demi.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-Variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --fg: #ffffff;           /* vibe colour (palette.foreground) */
  --surface: #2e2e2e;      /* vibe colour at 18% over black */
  --subtitle: rgba(255, 255, 255, 0.5);
  --track-from: #202224; --track-to: #606264;
  --fill-from: #ffffff; --fill-to: #ffffff;
  --zen: 1;
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #000; overflow: hidden; }
body { color: var(--fg); font-family: "Manrope", var(--system); -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; touch-action: manipulation; }
button { font: inherit; color: inherit; }

/* The player is one phone-width column, centred on wider screens. */
.player { position: relative; width: 100%; max-width: 430px; height: 100dvh; margin: 0 auto;
  padding-top: env(safe-area-inset-top); display: flex; flex-direction: column; }
.player[data-status="loading"] > * { visibility: hidden; }

/* player_bar.dart: a fixed 96 pt band; the title may overflow below it. */
.bar { position: relative; flex: 0 0 96px; }
.titles { position: absolute; left: 60px; right: 60px; top: 0; text-align: center;
  opacity: var(--zen); transition: opacity 300ms cubic-bezier(0.33, 1, 0.68, 1); }
.title { margin: 0; font-family: "AllRoundGothic", "Manrope", var(--system); font-weight: 600;
  font-size: 34px; line-height: 1.1; letter-spacing: -0.3px; color: var(--fg);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.subtitle { margin-top: 4px; color: var(--subtitle); }
.subtitle:empty { display: none; }

/* Bar buttons: 48 pt target, 40 pt disc at 18%, 24 pt icon. */
.slot { position: absolute; top: 1px; width: 56px; display: flex; flex-direction: column;
  align-items: center; gap: 0; opacity: var(--zen);
  transition: opacity 300ms cubic-bezier(0.33, 1, 0.68, 1); }
.slot-left { left: 0; } .slot-right { right: 0; }
.disc { width: 48px; height: 48px; border: 0; padding: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.disc > span { width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 18%, transparent);
  display: flex; align-items: center; justify-content: center; color: var(--fg); }
.disc svg { width: 24px; height: 24px; display: block; }

.body { position: relative; flex: 1 1 auto; min-height: 0; margin-bottom: max(12px, env(safe-area-inset-bottom)); }
.guide { position: absolute; left: 50%; transform: translateX(-50%); }

/* completion_pill.dart: 43 pt, between the title and the circle. */
.top-pill { position: absolute; left: 50%; transform: translateX(-50%); height: 43px; padding: 0 16px;
  border-radius: 21.5px; background: var(--surface); color: var(--fg); display: flex; align-items: center;
  gap: 8px; font: 500 15.5px/1 var(--system); letter-spacing: 0.2px; white-space: nowrap;
  animation: pill-in 300ms cubic-bezier(0.33, 1, 0.68, 1); }
.top-pill[hidden] { display: none; }
.top-pill svg { width: 17px; height: 17px; display: block; }
@keyframes pill-in { from { opacity: 0; transform: translateX(-50%) scale(0.85); } }

/* Everything below the circle, anchored to the bottom. */
.lower { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; }
.instruction { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0 24px; display: flex; align-items: center;
  justify-content: center; font: 500 16px/1.45 "Manrope", var(--system); color: var(--fg); }
.instruction > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.instruction.short > span { text-align: center; }

/* PlayerControlStyle.button: the tap-to-continue action. */
.action { display: flex; justify-content: center; padding: 6px 20px; }
.action[hidden] { display: none; }
.action button { min-width: 48px; min-height: 36px; padding: 4px 16px; border: 0; border-radius: 14px;
  background: color-mix(in srgb, var(--fg) 18%, transparent); color: var(--fg); cursor: pointer;
  font: 700 17px/1.3 "Manrope", var(--system); letter-spacing: 0.3px; -webkit-tap-highlight-color: transparent; }

/* breath_title_row.dart: phase pills with a row of second dots. */
.phases { flex: 0 0 auto; height: 50px; margin-top: 4px; padding: 0 16px; display: flex; justify-content: center; }
.phases[hidden] { display: none; }
.phases-row { display: flex; gap: 8px; transform-origin: center top; }
.phase { display: flex; flex-direction: column; align-items: center; }
.phase-pill { height: 38px; padding: 6px 13px; border-radius: 99px; background: var(--surface); color: var(--fg);
  display: flex; align-items: center; white-space: nowrap; font: 500 15.5px/1 var(--system); letter-spacing: 0.2px;
  transition: background-color 220ms ease-out, color 220ms ease-out; }
.phase.active .phase-pill { background: var(--fg); color: var(--surface); }
.dots { height: 10px; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--surface); }
.dot.half { width: 3px; border-radius: 3px 0 0 3px; }
.dot.on { background: var(--fg); }
.dots-label { font: 600 11px/0.9 "Manrope", var(--system); color: var(--fg); }
.phases.zen { opacity: 0.25; transition: opacity 300ms cubic-bezier(0.33, 1, 0.68, 1); }

/* session_timing_panel.dart: duration and breaths tiles. */
.timing { display: flex; justify-content: center; gap: 8px; padding: 0 16px; }
.timing:empty { display: none; }
.tile { flex: 0 0 108px; min-height: 48px; padding: 6px 8px; border-radius: 14px;
  background: color-mix(in srgb, var(--fg) 18%, transparent); color: var(--fg);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 21px/1.2 "Manrope", var(--system); letter-spacing: 0.3px; font-variant-numeric: tabular-nums; }
.tile.plain { background: transparent; }
.tile svg { display: block; width: 24px; height: 24px; }
.tile .wind svg { width: 22px; height: 22px; }

/* player_progress_bar.dart: 5 pt, 2.5 radius, 16 pt sides, 2 pt black dividers. */
.progress { position: relative; flex: 0 0 5px; margin: 4px 16px 0; border-radius: 2.5px; overflow: hidden;
  background: linear-gradient(90deg, var(--track-from), var(--track-to)); opacity: var(--zen);
  transition: opacity 300ms cubic-bezier(0.33, 1, 0.68, 1); }
.progress[hidden] { display: none; }
.progress-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--fill-from), var(--fill-to));
  clip-path: inset(0 100% 0 0); }
.progress i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #000; }

/* Get Neumo card. */
.card { margin: 0 16px 12px; padding: 14px 16px 16px; border-radius: 20px; background: var(--surface);
  text-align: center; }
.card[hidden] { display: none; }
.card p { margin: 0 0 12px; font: 500 15px/1.4 "Manrope", var(--system); color: var(--fg); }
.card .badges { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.card .badges img { height: 40px; display: block; }
/* Google's badge image carries its own clear space; trim it to match. */
.card .badges img.play { height: 59px; margin: -9.5px -10px; }
.card .retry { min-height: 44px; padding: 8px 20px; border: 0; border-radius: 14px; cursor: pointer;
  background: color-mix(in srgb, var(--fg) 18%, transparent); font: 700 17px/1.2 "Manrope", var(--system); }
.player[data-status="card"] .guide, .player[data-status="card"] .timing { display: none; }
.player[data-status="card"] .lower { top: 0; justify-content: center; }

/* Session-length sheet: neumo_bottom_sheet.dart and neumo_wheel_picker.dart.
   Scrim black 50%; surface NeumoTokens.bg with a 28 pt top radius; handle
   32×4 at 26% white in a 48 pt target; wheel 320 pt of 56 pt rows with a
   selection band in the vibe colour at 18%. */
.sheet-scrim { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, 0.5); display: flex;
  align-items: flex-end; justify-content: center; animation: scrim-in 200ms ease-out; }
.sheet { width: 100%; max-width: 640px; background: #0B0719; border-radius: 28px 28px 0 0;
  padding-bottom: env(safe-area-inset-bottom); animation: sheet-in 250ms cubic-bezier(0.33, 1, 0.68, 1); }
.sheet-scrim.closing { opacity: 0; transition: opacity 200ms ease-out; }
.sheet-scrim.closing .sheet { transform: translateY(100%); transition: transform 200ms ease-in; }
@keyframes scrim-in { from { background: rgba(0, 0, 0, 0); } }
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet-handle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  margin: 0 auto; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sheet-handle span { width: 32px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.26); }
.wheel { position: relative; height: 320px; margin: 8px 0 12px; }
.wheel-band { position: absolute; left: 24px; right: 24px; top: 132px; height: 56px; border-radius: 14px;
  background: color-mix(in srgb, var(--fg) 18%, transparent); pointer-events: none; }
.wheel-list { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; padding: 132px 0;
  scrollbar-width: none; outline: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); }
.wheel-list::-webkit-scrollbar { display: none; }
.wheel-item { height: 56px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center;
  cursor: pointer; color: color-mix(in srgb, var(--fg) 45%, transparent);
  font: 500 16px/1 "Manrope", var(--system); letter-spacing: 0.1px; font-variant-numeric: tabular-nums; }
.wheel-item.selected { color: var(--fg); font-size: 19px; font-weight: 600; }

/* Tiles that open a sheet are real buttons with the tile's look. */
button.tile { border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* SessionIconTile: a 48 pt disc in the tiles' fill, 8 pt after them. */
.tile-disc { flex: 0 0 48px; width: 48px; height: 48px; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--fg) 18%, transparent); color: var(--fg); display: flex;
  align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.tile-disc svg { width: 24px; height: 24px; display: block; }

/* Exercise information sheet: exercise_info_body.dart, presented in a sheet.
   Surface is the vibe colour at 18% over #0A0B0B; the sheet stops 56 pt
   short of the top (kNeumoSheetTopClearance). */
.sheet.info-sheet { background: var(--info-bg); display: flex; flex-direction: column;
  max-height: calc(100dvh - 56px - env(safe-area-inset-top)); }
.info-sheet .sheet-handle { flex: 0 0 48px; }
.info-sheet .sheet-handle span { background: color-mix(in srgb, var(--fg) 22%, transparent); }
.info-sheet .sheet-body { flex: 1 1 auto; min-height: 0; display: flex; }
.info-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; outline: none; padding: 4px 0 28px;
  text-align: left; }
.info-hero { padding: 4px 20px 18px; }
.info-hero h1, .info-subtitle { margin: 0; font: 600 30px/1.05 "AllRoundGothic", "Manrope", var(--system);
  letter-spacing: -0.5px; color: var(--fg); }
.info-subtitle { margin-top: 6px; color: color-mix(in srgb, var(--fg) 50%, transparent); }
.info-summary { margin: 12px 0 0; font: 400 15px/1.45 "Manrope", var(--system); color: rgba(255, 255, 255, 0.86); }
.info-tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.info-tags li { padding: 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  font: 600 10px/1.4 "Manrope", var(--system); letter-spacing: 0.8px; text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 55%, transparent); }
.info-section { padding: 0 20px 14px; }
.info-section h2 { margin: 0; padding: 0 0 8px 4px; font: 700 11px/1.4 "Manrope", var(--system); letter-spacing: 2.6px;
  text-transform: uppercase; color: color-mix(in srgb, var(--fg) 78%, transparent); }
.info-card { padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.22);
  border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
.info-text { margin: 0; font: 500 14px/1.55 "Manrope", var(--system); color: rgba(255, 255, 255, 0.86); }
.info-text.strong { color: #fff; }
.info-text.bright { color: rgba(255, 255, 255, 0.92); }
.info-group + .info-group { margin-top: 16px; }
.info-group h3 { margin: 0 0 8px; font: 600 16px/1.5 "Manrope", var(--system); color: var(--fg); }
.info-row { display: flex; align-items: center; padding: 8px 0; color: var(--fg); }
.info-ring { flex: 0 0 64px; margin-right: 16px; }
.info-phases { flex: 1 1 auto; }
.info-phase { display: flex; align-items: center; padding: 2px 0; opacity: 0.9;
  font: 700 15px/1 "Manrope", var(--system); letter-spacing: -0.3px; }
.info-phase.hold { opacity: 0.3; }
.info-phase-icon { width: 16px; height: 16px; margin-right: 4px; }
.info-phase-icon svg { width: 16px; height: 16px; display: block; }
.info-glyph { margin-right: 6px; }
.info-times { padding: 4px 10px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 18%, transparent);
  font: 600 14px/1.5 "Manrope", var(--system); }
.info-rest { font: 500 16px/1.5 "Manrope", var(--system); }
.info-rest-icon { width: 32px; height: 32px; margin-right: 16px; }
.info-rest-icon svg { width: 32px; height: 32px; display: block; }
.info-rest-name { flex: 1 1 auto; }

/* Controls are not text: selecting their labels gets in the way of taps,
   drags and scrolling. Copy in the information sheet stays selectable. */
.bar, .timing, .phases, .action, .top-pill, .progress, .guide, .wheel, .sheet-handle, .card .badges {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.wheel-list { cursor: grab; }
.wheel-list.dragging { cursor: grabbing; scroll-snap-type: none; }

/* The sound toggle when on: inverted, like the app's selected heart. */
.tile-disc.on { background: var(--fg); color: var(--surface); }
.disc.on > span { background: var(--fg); color: var(--surface); }
.disc-spacer { display: block; width: 48px; height: 48px; }

/* Inside the Breathing Zone app (the showcase pack marks the page) nothing
   is selectable: selection gets in the way of scrolling the info sheet and
   brings up the copy menu. On the web the text stays selectable. */
.hosted, .hosted * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
