html,
body,
#app {
  min-height: 100dvh;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  background: #ffffff;
  -webkit-text-size-adjust: 100%;
}

input,
textarea,
select {
  font-size: 16px !important;
  -webkit-appearance: none;
  appearance: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

[data-auth-screen="true"] {
  min-height: 100svh;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.mos-auth-screen {
  background: radial-gradient(circle at 14% 8%, rgba(255, 226, 194, 0.5), rgba(255, 226, 194, 0) 55%),
    radial-gradient(circle at 84% 16%, rgba(203, 214, 255, 0.5), rgba(203, 214, 255, 0) 60%),
    linear-gradient(180deg, #f7f4ff 0%, #fff6f0 100%);
  color: #0f172a;
}

.mos-auth-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--mos-border);
  box-shadow: var(--mos-shadow);
}

.mos-auth-input {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

.mos-auth-title {
  color: #0f172a;
}

.mos-auth-subtitle {
  color: #475569;
}

.mos-fixed-cta {
  bottom: calc(var(--mos-bottom-nav-height) + var(--mos-bottom-nav-pad) + var(--mos-bottom-nav-gap));
}

.mos-fixed-cta-button {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  pointer-events: auto;
  background: #ef5f37;
  color: #fff;
  padding: 1.25rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(239, 95, 55, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.mos-fixed-cta-button:active {
  transform: scale(0.95);
}

.mos-bottom-nav {
  height: var(--mos-bottom-nav-height);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.14);
}

body,
body *,
body *::before,
body *::after {
  text-transform: none !important;
  letter-spacing: normal !important;
}

:root {
  --mos-radius: 10px;
  --mos-bg-start: #f6f3ff;
  --mos-bg-end: #fff6f0;
  --mos-card: #fffaf4;
  --mos-card-strong: #f3efff;
  --mos-border: rgba(148, 163, 184, 0.35);
  --mos-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
  --mos-hero-shadow: 0 28px 48px rgba(15, 23, 42, 0.16);
  --mos-bottom-nav-height: 80px;
  --mos-bottom-nav-pad: 16px;
  --mos-bottom-nav-gap: 5px;
}

.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl,
[class~="rounded-lg"],
[class~="rounded-xl"],
[class~="rounded-2xl"],
[class~="rounded-3xl"],
[class*="rounded-[10px]"] {
  border-radius: var(--mos-radius) !important;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

::-webkit-scrollbar {
  display: none;
}

.mos-screen {
  background: radial-gradient(circle at 12% 10%, rgba(255, 230, 200, 0.35), rgba(255, 230, 200, 0) 55%),
    radial-gradient(circle at 88% 18%, rgba(197, 214, 255, 0.35), rgba(197, 214, 255, 0) 60%),
    linear-gradient(180deg, var(--mos-bg-start), var(--mos-bg-end));
  position: relative;
  overflow: hidden;
}

.mos-screen::before,
.mos-screen::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.55;
  pointer-events: none;
}

.mos-screen::before {
  top: -140px;
  left: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 210, 160, 0.65), rgba(255, 210, 160, 0));
}

.mos-screen::after {
  bottom: -180px;
  right: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(190, 210, 255, 0.7), rgba(190, 210, 255, 0));
}

.mos-hero {
  background: linear-gradient(135deg, #ffe2c2, #cbd6ff);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--mos-hero-shadow);
  position: relative;
  overflow: hidden;
}

.mos-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -40% -12%;
  height: 130%;
  background: radial-gradient(circle at 45% 20%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.mos-hero-transparent {
  background: transparent;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.mos-hero-transparent::after {
  content: none;
}


.mos-card {
  background: linear-gradient(180deg, var(--mos-card), var(--mos-card-strong));
  border: 1px solid var(--mos-border);
  box-shadow: var(--mos-shadow);
}

.home-hero {
  background: linear-gradient(135deg, rgba(255, 221, 189, 0.95), rgba(198, 215, 255, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.18);
}

.food-hero-card {
  background: linear-gradient(135deg, rgba(255, 236, 222, 0.92), rgba(226, 235, 255, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.14);
}

.plan-hero-card {
  background: linear-gradient(135deg, rgba(232, 238, 255, 0.95), rgba(255, 244, 223, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.14);
}

.emoji-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-left: 0.4rem;
  border-radius: 999px;
  font-size: 1.2rem;
  background: #f7c948;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.emoji-badge--food {
  background: #ffd6a8;
}

.emoji-badge--plan {
  background: #cfe0ff;
}

.emoji-badge--water {
  background: #cfe8ff;
}

.emoji-badge--training {
  background: #f4efc9;
}

.home-hero-glow {
  position: absolute;
  inset: auto -15% -45% -15%;
  height: 160%;
  background: radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.home-hero-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.home-hero-chip {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.home-hero-illustration {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.12);
}

.home-hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: hue-rotate(320deg) saturate(1.1);
}

.home-greeting-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  background: rgba(255, 205, 133, 0.35);
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.home-greeting-wrap {
  position: relative;
}

.home-greeting-stamp {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  color: #0f172a;
  width: 3.38rem;
  height: 3.38rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  transform: rotate(-6deg);
  pointer-events: none;
  will-change: transform;
}

.home-greeting-stamp--sun {
  top: -0.6rem;
  right: 2.4rem;
  background: #f7c948;
  --stamp-rotation: -6deg;
}

.home-greeting-stamp--muscle {
  top: 2.2rem;
  right: -0.2rem;
  background: #7bdcb5;
  border-radius: 16px;
  --stamp-rotation: 4deg;
}

.home-greeting-stamp--sun {
  animation: greeting-float 6.5s ease-in-out infinite;
}

.home-greeting-stamp--muscle {
  animation: greeting-float 7.2s ease-in-out infinite;
  animation-delay: 0.6s;
}

@keyframes greeting-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--stamp-rotation, -6deg));
  }
  50% {
    transform: translateY(-6px) rotate(calc(var(--stamp-rotation, -6deg) + 2deg));
  }
}

.headroom {
  will-change: transform;
  transition: transform 200ms ease-out;
}

.headroom--pinned {
  transform: translateY(0%);
}

.headroom--unpinned {
  transform: translateY(-110%);
}

.home-action-card {
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(247, 244, 255, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  transition: transform 180ms ease;
}

.home-action-card:active {
  transform: scale(0.98);
}

.home-action-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.home-metric-card {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-card-surface {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.bg-white {
  background-color: #fffaf4 !important;
}

.bg-surface-container-low {
  background-color: #f3efff !important;
}

.bg-surface-container-high {
  background-color: #ece7fb !important;
}

.mos-water-shell {
  position: relative;
  width: min(72vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.mos-water-shell::after {
  content: "";
  position: absolute;
  inset: 10% 13% auto;
  height: 1px;
  background: rgba(69, 88, 200, 0.2);
  box-shadow:
    0 34px 0 rgba(69, 88, 200, 0.2),
    0 68px 0 rgba(69, 88, 200, 0.2),
    0 102px 0 rgba(69, 88, 200, 0.2),
    0 136px 0 rgba(69, 88, 200, 0.2),
    0 170px 0 rgba(69, 88, 200, 0.2);
  pointer-events: none;
}

.mos-water-fill {
  position: absolute;
  inset: auto 0 0 0;
  border-radius: 24px 24px 32px 32px;
  background: #4558c8;
  transition: height 300ms ease;
}

.mos-water-fill::before,
.mos-water-fill::after {
  display: none;
}

.mos-water-glow {
  display: none;
}

.mos-water-markers {
  position: absolute;
  inset: 13% 0 16% 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  color: rgba(69, 88, 200, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
}

.mos-water-markers span {
  display: block;
}
