:root {
  --bg: #f2f1ec;
  --card: #ffffff;
  --ink: #1a1c1a;
  --soft: rgba(26, 28, 26, 0.55);
  --line: rgba(26, 28, 26, 0.08);
  --accent: #2fb573;
  --p: #ff7a59;
  --c: #f2b632;
  --f: #6f8cff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--accent) 10%, var(--bg)) 0%, var(--bg) 70%);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 8px 10px;
}

.mt { position: relative; width: min(318px, 100%); padding: 14px 14px 12px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(26, 28, 26, 0.05), 0 30px 50px -32px rgba(30, 90, 60, 0.45); }
.mt__head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px; }
.mt__head h2 { font-size: 16px; line-height: 22px; font-weight: 740; font-stretch: 102%; letter-spacing: -0.01em; }
.mt__head span { font-size: 12px; font-weight: 560; color: var(--soft); }
.mt__head b { font-weight: 700; color: var(--ink); }

.mt__body { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 10px; }
.mt__ring { position: relative; width: 104px; height: 104px; }
.mt__ring svg { position: absolute; left: 0; top: 0; width: 104px; height: 104px; fill: none; stroke-width: 9; stroke-linecap: round; }
.mt__track { stroke: rgba(26, 28, 26, 0.06); }
.mt__arc { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 1; }
.mt__over { stroke: color-mix(in srgb, var(--accent) 55%, #0c2a1a); stroke-width: 9; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.mt__kcal { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: grid; place-content: center; text-align: center; }
.mt__kcal b { font-size: 24px; line-height: 26px; font-weight: 770; font-stretch: 94%; letter-spacing: -0.03em; }
.mt__kcal span { font-size: 10.500px; line-height: 13px; font-weight: 600; color: var(--soft); }

.mt__bars { list-style: none; display: grid; gap: 9px; }
.mt__bar { display: grid; gap: 4px; outline: none; border-radius: 8px; cursor: default; }
.mt__bar:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.mt__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.500px; line-height: 16px; font-weight: 680; white-space: nowrap; }
.mt__val { height: 16px; overflow: hidden; font-size: 12px; font-weight: 580; color: var(--soft); }
.mt__val span { display: block; }
.mt__val b { font-weight: 720; color: var(--ink); }
.mt__line { position: relative; height: 8px; border-radius: 4px; background: rgba(26, 28, 26, 0.06); }
.mt__fill { position: absolute; left: 0; top: 0; width: 0%; height: 100%; border-radius: 4px; background: var(--tone); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }

.mt__meals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.mt__meal { position: relative; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px 0 8px; border: 0; border-radius: 13px; background: #f4f4f1; color: var(--ink); font: inherit; font-size: 12.500px; font-weight: 640; text-align: left; white-space: nowrap; cursor: pointer; outline: none; overflow: hidden; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 0 0 1px transparent; transition: background-color 0.25s, box-shadow 0.25s; }
.mt__meal:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.mt__meal[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 12%, #ffffff); box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--accent) 60%, transparent); }
.mt__mark { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(26, 28, 26, 0.08); color: var(--ink); transition: background-color 0.25s, color 0.25s; }
.mt__meal[aria-pressed="true"] .mt__mark { background: var(--accent); color: #ffffff; }
.mt__mark svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.mt__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mt__cal { flex: none; font-size: 11.500px; font-weight: 580; color: var(--soft); }
.mt__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #1a1c1a; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(26, 28, 26, 0.3)); z-index: 5; }
