@font-face { font-family: Anek; src: url(/anek.woff2) format('woff2'); font-weight: 400 800; font-display: swap; ascent-override: 96%; descent-override: 28%; line-gap-override: 0%; }
:root {
  --ink: #0B0716; --card: #181029; --card2: #251A3D; --line: #35274F;
  --text: #FBF9FF; --soft: #B3A8CC;
  --lime: #C8FF00; --cyan: #19E3FF; --pink: #FF2D87; --orange: #FF8A1F; --yellow: #FFE94A;
  --spring: cubic-bezier(.2, 1.3, .4, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--ink); }
body { font: 500 17px/1.35 Anek, system-ui, sans-serif; color: var(--text); min-height: 100dvh; overflow-x: hidden; }
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; touch-action: manipulation; transition: transform .18s var(--spring); }
button:active { transform: scale(.94); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
svg { display: block; }
.ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
h2 { font-size: 22px; font-weight: 800; }
.soft { color: var(--soft); }
.num { font-variant-numeric: tabular-nums; }

/* page */
main { max-width: 560px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 18px calc(120px + env(safe-area-inset-bottom)); }
main > * { animation: rise .45s both cubic-bezier(.2, .8, .2, 1); }
main > :nth-child(2) { animation-delay: .05s; } main > :nth-child(3) { animation-delay: .1s; } main > :nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--card); flex: none; }
.round[disabled] { opacity: 0; pointer-events: none; }
.round.hot { background: var(--lime); color: #000; }

/* gauge */
.gauge { position: relative; width: min(100%, 360px); margin: 4px auto 0; }
.gauge svg { width: 100%; overflow: visible; }
.gauge path { fill: none; stroke-linecap: round; stroke-width: 34; transition: stroke-dasharray 1s cubic-bezier(.2, .8, .2, 1); }
.gauge .track { stroke: var(--card2); }
.gauge .glow { filter: drop-shadow(0 0 14px rgb(200 255 0 / .35)); }
.gauge .more { stroke: var(--pink); filter: drop-shadow(0 0 14px rgb(255 45 135 / .6)); }
.gauge div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding-top: 4%; }
.gauge b { font-size: 84px; line-height: .95; font-weight: 800; letter-spacing: -.03em; }
.gauge span { font-size: 19px; color: var(--soft); }
.gauge .over { color: #000; background: var(--pink); font-weight: 800; border-radius: 99px; padding: 2px 14px; justify-self: center; margin-top: 4px; }

/* meals */
.list { display: grid; gap: 10px; margin-top: 18px; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--card); border-radius: 22px; padding: 10px 18px 10px 10px; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-weight: 700; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t span { color: var(--soft); font-size: 15px; }
.row > strong { font-size: 24px; font-weight: 800; }
.pic { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: #000; background: var(--c, var(--cyan)); overflow: hidden; }
.row.wait { background: var(--yellow); color: #000; } .row.wait .t span { color: #4a4300; }
.none { text-align: center; padding: 26px 0; }

/* nav */
nav { position: fixed; z-index: 5; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 28px), 440px); height: 70px; display: flex; align-items: center; justify-content: space-around; background: #1F1533; border-radius: 35px; box-shadow: 0 10px 40px #000a; }
nav a { width: 54px; height: 54px; display: grid; place-items: center; color: var(--soft); border-radius: 50%; transition: color .2s; }
nav a[aria-current] { color: var(--lime); }
.shoot { width: 84px; height: 84px; margin-top: -30px; border-radius: 50%; background: var(--lime); color: #000; display: grid; place-items: center; box-shadow: 0 0 0 7px var(--ink), 0 0 34px rgb(200 255 0 / .5); }
.shoot .ic { width: 38px; height: 38px; }

/* foods */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 26px; overflow: hidden; text-align: left; background: var(--c, var(--cyan)); color: #000; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile div { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; line-height: 1.12; }
.tile.photo { color: #fff; } .tile.photo div { background: linear-gradient(transparent 35%, #000c); }
.tile b { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; } .tile span { font-size: 14px; font-weight: 600; }
.tile strong { position: absolute; top: 10px; right: 10px; background: #000; color: var(--lime); border-radius: 99px; padding: 3px 11px; font-size: 16px; }

/* sheets and fields */
dialog { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 560px; max-height: 92dvh; border: 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); background: var(--card); color: var(--text); border-radius: 34px 34px 0 0; overflow-y: auto; overscroll-behavior: contain; }
dialog[open] { animation: up .38s cubic-bezier(.2, .9, .2, 1); }
dialog.tall { height: 92dvh; }
@keyframes up { from { transform: translateY(100%); } }
dialog::backdrop { background: #05020dcc; }
dialog .list .row, dialog .fld { background: var(--card2); }
.fld { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 20px; padding: 0 18px; min-height: 60px; margin-top: 10px; }
.fld > span { color: var(--soft); flex: none; }
.fld input, .fld select { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: 0; text-align: right; font-weight: 700; font-size: 19px; height: 60px; }
.fld:focus-within { box-shadow: inset 0 0 0 2px var(--lime); }
.fld select option { background: var(--card2); }
.fld.l input { text-align: left; }
input::placeholder { color: #8d81a8; font-weight: 500; }
.big { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; border-radius: 31px; background: var(--lime); color: #000; font-weight: 800; font-size: 20px; margin-top: 16px; text-decoration: none; }
.big.two { background: var(--card2); color: var(--text); margin-top: 10px; }
.big[disabled] { opacity: .5; }
.link { display: block; margin: 14px auto 0; padding: 12px; color: var(--soft); font-weight: 600; }
.err { color: var(--pink); font-weight: 700; text-align: center; min-height: 24px; margin-top: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.seg button { min-height: 60px; border-radius: 20px; background: var(--card); font-weight: 700; } .seg [aria-pressed=true] { background: var(--cyan); color: #000; }
.head { display: flex; gap: 16px; align-items: center; }
.head .pic { width: 92px; height: 92px; border-radius: 26px; font-size: 38px; }
.head h2 { line-height: 1.1; overflow-wrap: anywhere; } .head > div:not(.pic) { flex: 1; min-width: 0; }
.step { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 14px; }
.step button { width: 72px; height: 72px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; } .step button .ic { width: 32px; height: 32px; }
.step div { text-align: center; } .step b { font-size: 56px; line-height: 1; font-weight: 800; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips button { background: var(--cyan); color: #000; font-weight: 700; border-radius: 99px; padding: 10px 18px; text-align: left; line-height: 1.15; }
.acts { display: flex; gap: 10px; margin-top: 16px; } .acts .big { margin: 0; } .acts .round { width: 62px; height: 62px; background: var(--card2); }

/* trends */
.stat { display: flex; align-items: baseline; gap: 10px; } .stat b { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.panel { background: var(--card); border-radius: 30px; padding: 20px 18px 14px; margin-top: 16px; position: relative; }
.panel svg { width: 100%; overflow: visible; } .panel text { fill: var(--soft); font-size: 13px; font-weight: 600; }
.tip { position: absolute; z-index: 2; pointer-events: none; background: #000; border-radius: 12px; padding: 5px 12px; font-weight: 700; white-space: nowrap; transform: translate(-50%, -100%); }

/* toast, login, burst, scan */
#toast { position: fixed; z-index: 9; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; background: #fff; color: #000; font-weight: 700; border-radius: 99px; padding: 4px 8px 4px 22px; min-height: 54px; white-space: nowrap; max-width: calc(100% - 28px); animation: pop .35s var(--spring); border: 0; inset-inline-end: auto; margin: 0; overflow: hidden; }
#toast span { overflow: hidden; text-overflow: ellipsis; padding-right: 14px; } #toast button { background: #000; color: var(--lime); border-radius: 99px; padding: 9px 18px; font-weight: 800; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) scale(.7); } }
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; max-width: 400px; padding-bottom: 40px; }
.login img { width: 132px; margin: 0 auto 6px; } .login h1 { font-size: 64px; font-weight: 800; text-align: center; line-height: 1; letter-spacing: -.03em; margin-bottom: 26px; }
.code input { text-align: center !important; font-size: 34px; letter-spacing: .35em; padding-left: .35em; height: 76px; }
.seeing { position: fixed; inset: 0; z-index: 8; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.seeing img { width: 100%; height: 100%; object-fit: contain; }
.seeing i { position: absolute; left: 0; right: 0; height: 34%; background: linear-gradient(transparent, rgb(200 255 0 / .5)); border-bottom: 4px solid var(--lime); box-shadow: 0 12px 40px rgb(200 255 0 / .6); animation: sweep 1.5s ease-in-out infinite alternate; }
@keyframes sweep { from { top: -34%; } to { top: 72%; } }
.spark { position: fixed; z-index: 10; width: 12px; height: 12px; border-radius: 50%; pointer-events: none; }

@media (min-width: 900px) {
  main.day { max-width: 1040px; display: grid; grid-template-columns: 400px 1fr; column-gap: 48px; align-items: start; }
  main.day .bar { grid-column: 1; } main.day .gauge { grid-column: 1; } main.day .list { grid-column: 2; grid-row: 1 / span 3; margin-top: 6px; }
  main.wide { max-width: 900px; }
  dialog { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 34px; } dialog[open] { animation: none; }
}
@media (prefers-reduced-motion: reduce) { *, ::backdrop { animation-duration: .01s !important; transition-duration: .01s !important; } .seeing i { top: 40%; animation: none; } }
