:root {
  --paper: #12111b;
  --paper-2: #272337;
  --card: rgba(34, 30, 47, 0.92);
  --ink: #fffaf4;
  --muted: #c1b8c8;
  --line: rgba(255, 255, 255, 0.17);
  --green: #ff6b57;
  --green-2: #ffad95;
  --lime: #ffd36e;
  --lime-soft: #38232b;
  --peach: #55d9ff;
  --peach-soft: #211326;
  --blue-soft: #111b2d;
  --danger: #ff536d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

html {
  background: #0c0a14;
}

body {
  background:
    radial-gradient(circle at 50% -4%, rgba(133, 71, 255, 0.42), transparent 31rem),
    radial-gradient(circle at -8% 35%, rgba(255, 100, 96, 0.22), transparent 24rem),
    radial-gradient(circle at 108% 73%, rgba(61, 195, 255, 0.2), transparent 25rem),
    linear-gradient(180deg, #171020 0%, #0c0a14 44%, #12101d 100%);
  background-attachment: fixed;
}

.app-shell {
  position: relative;
  z-index: 2;
}

.stage-aurora,
.stage-stars,
.stage-rain {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.stage-aurora {
  background:
    conic-gradient(from 205deg at 50% -12%, transparent, rgba(255, 80, 110, 0.24), transparent 15%, rgba(126, 82, 255, 0.27), transparent 29%),
    radial-gradient(ellipse at 50% -8%, rgba(240, 191, 255, 0.22), transparent 38%);
  filter: blur(14px);
  animation: auroraBreathe 8s ease-in-out infinite alternate;
}

.stage-stars {
  opacity: 0.72;
  background-image:
    radial-gradient(circle at 12% 17%, rgba(255, 248, 210, 0.9) 0 1px, transparent 1.7px),
    radial-gradient(circle at 86% 10%, rgba(192, 231, 255, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle at 70% 31%, rgba(255, 201, 92, 0.85) 0 1.2px, transparent 2px),
    radial-gradient(circle at 24% 48%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 91% 61%, rgba(255, 128, 109, 0.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 38% 75%, rgba(181, 198, 255, 0.8) 0 1px, transparent 1.7px);
  background-size: 280px 260px, 360px 300px, 420px 330px, 320px 350px, 390px 290px, 450px 380px;
  animation: starPulse 5s ease-in-out infinite alternate;
}

.stage-rain {
  opacity: 0.25;
  background-image: repeating-linear-gradient(
    104deg,
    transparent 0 18px,
    rgba(206, 220, 255, 0.28) 19px,
    transparent 20px 55px
  );
  background-size: 180px 180px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 88%);
  animation: stageRain 3.6s linear infinite;
}

.ambient-a {
  z-index: 1;
  background: rgba(255, 55, 83, 0.16);
  filter: blur(45px);
}

.ambient-b {
  z-index: 1;
  background: rgba(57, 124, 255, 0.15);
  filter: blur(48px);
}

@keyframes auroraBreathe {
  from { opacity: 0.65; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.05); }
}

@keyframes starPulse {
  from { opacity: 0.42; }
  to { opacity: 0.83; }
}

@keyframes stageRain {
  from { background-position: 0 -180px; }
  to { background-position: -58px 180px; }
}

.topbar {
  margin-bottom: 26px;
}

.brand-mark {
  border: 1px solid rgba(255, 199, 112, 0.55);
  border-radius: 50% 50% 50% 10px;
  background:
    radial-gradient(circle at 32% 25%, #ffca72 0 5%, transparent 6%),
    linear-gradient(135deg, #ff7c54, #ab1a51 58%, #27102f);
  color: #fff7df;
  box-shadow: 0 0 26px rgba(255, 80, 74, 0.3), inset 0 0 12px rgba(255, 218, 135, 0.22);
}

.brand-copy small {
  color: #c5a9ff;
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-copy strong {
  color: #fff9f0;
}

.date-chip {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(13, 12, 21, 0.72);
  color: #cfcad7;
  box-shadow: inset 0 0 18px rgba(93, 66, 145, 0.08);
}

.eyebrow {
  color: #ff9a83;
}

h1,
h2,
h3 {
  color: #fff8ef;
}

h1 {
  text-shadow: 0 0 36px rgba(255, 91, 73, 0.13);
}

.subcopy {
  color: #aaa4b4;
}

.text-button {
  color: #ffae75;
}

.card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(150deg, rgba(43, 38, 58, 0.94), rgba(23, 20, 34, 0.94));
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
}

.hero {
  border: 1px solid rgba(255, 146, 103, 0.24);
  background:
    linear-gradient(90deg, rgba(28, 12, 25, 0.93) 0%, rgba(27, 20, 42, 0.72) 46%, rgba(17, 17, 35, 0.32) 100%),
    url("./images/fireworks-hero.jpg") center 45% / cover no-repeat,
    linear-gradient(145deg, #2b1825 0%, #1b1830 48%, #131427 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.4),
    0 0 44px rgba(255, 85, 74, 0.09);
}

.hero::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(20, 10, 26, 0.05), rgba(12, 10, 24, 0.42)),
    linear-gradient(90deg, transparent 38%, rgba(91, 64, 198, 0.14) 68%, rgba(255, 119, 87, 0.08));
  box-shadow: none;
  opacity: 1;
}

.hero::after {
  right: auto;
  bottom: -128px;
  left: -68px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(118, 123, 255, 0.22);
  background: radial-gradient(circle at 55% 45%, rgba(74, 107, 255, 0.24), rgba(61, 21, 103, 0.1) 52%, transparent 72%);
}

.hero-label {
  color: rgba(255, 242, 232, 0.68);
}

.phase-pill {
  border-color: rgba(255, 201, 92, 0.36);
  background: rgba(255, 172, 74, 0.12);
  color: #ffd27e;
  box-shadow: 0 0 18px rgba(255, 187, 87, 0.08);
}

.weight-value strong {
  color: #fff8ee;
  text-shadow: 0 0 22px rgba(255, 219, 169, 0.14);
}

.weight-value span,
.weight-delta {
  color: rgba(247, 232, 226, 0.65);
}

.weight-delta b {
  color: #ffcc6d;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.1);
}

.ring-value {
  stroke: #ffc85a;
  filter: drop-shadow(0 0 6px rgba(255, 195, 85, 0.45));
}

.ring-copy span {
  color: rgba(255, 243, 233, 0.58);
}

.hero-bottom {
  border-color: rgba(255, 255, 255, 0.105);
}

.hero-stat + .hero-stat {
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-stat span {
  color: rgba(255, 242, 235, 0.52);
}

.hero-stat strong {
  color: #fff9ef;
}

.quick-action {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(46, 40, 61, 0.94), rgba(22, 19, 32, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bottom-nav {
  grid-template-columns: repeat(5, 1fr);
}

.quick-action {
  min-height: 102px;
  padding: 15px 14px;
}

.quick-action strong {
  font-size: 15px;
}

.quick-action span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action.alcohol {
  border-color: rgba(97, 193, 255, 0.28);
  background:
    radial-gradient(circle at 78% 10%, rgba(78, 208, 255, 0.17), transparent 38%),
    radial-gradient(circle at 10% 100%, rgba(179, 69, 255, 0.17), transparent 42%),
    linear-gradient(145deg, #16152c, #0c0b17);
}

.quick-action.alcohol .q-icon {
  background: rgba(79, 198, 255, 0.12);
  color: #74dcff;
}

.quick-action.alcohol.highlight {
  border-color: rgba(115, 203, 255, 0.58);
  background:
    radial-gradient(circle at 84% 5%, rgba(124, 225, 255, 0.3), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(191, 75, 255, 0.32), transparent 44%),
    linear-gradient(145deg, #263582, #612176 58%, #8f1e5f);
  color: #fff9ee;
  box-shadow: 0 16px 38px rgba(63, 91, 255, 0.23);
}

.quick-action.alcohol.highlight .q-icon {
  background: rgba(255, 255, 255, 0.13);
  color: #b9edff;
}

.quick-action.alcohol.highlight span {
  color: rgba(237, 244, 255, 0.7);
}

.action-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 2px 10px;
}

.action-head small {
  display: block;
  margin-bottom: 2px;
  color: #c99dff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.action-head strong {
  color: #fff8ef;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.action-head button {
  border: 0;
  background: transparent;
  color: #ffc08d;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.focus-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 14px;
  padding: 17px;
  border: 1px solid rgba(255, 191, 104, 0.32);
  border-radius: 21px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 163, 80, 0.2), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(195, 60, 101, 0.13), transparent 40%),
    linear-gradient(145deg, #23171d, #0d0c16);
  box-shadow: 0 16px 36px rgba(255, 92, 68, 0.08);
}

.focus-action-copy small {
  display: block;
  margin-bottom: 4px;
  color: #e9a96f;
  font-size: 10px;
  font-weight: 700;
}

.focus-action-copy strong {
  display: block;
  color: #fff8ee;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
}

.focus-action-copy p {
  margin: 5px 0 0;
  color: #a49aa6;
  font-size: 12px;
  line-height: 1.55;
}

.focus-action > button {
  align-self: center;
  min-height: 45px;
  padding: 10px 13px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffd472, #ff9c55);
  color: #271015;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.focus-status {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.focus-status button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #948b9d;
  font-size: 11px;
  cursor: pointer;
}

.focus-status button.done {
  border-color: rgba(255, 201, 92, 0.18);
  background: rgba(255, 195, 87, 0.08);
  color: #f4c96d;
}

.tour-calendar-card {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 193, 121, 0.25);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 159, 83, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(54, 24, 29, 0.96), rgba(27, 12, 17, 0.97));
}

.tour-overview {
  padding: 17px;
  border: 1px solid rgba(255, 190, 116, 0.25);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 161, 79, 0.14), transparent 40%),
    linear-gradient(145deg, rgba(59, 25, 30, 0.96), rgba(28, 12, 17, 0.97));
}

.tour-overview-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.tour-overview-head div + div {
  padding-left: 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-overview span {
  display: block;
  color: #ae9994;
  font-size: 10px;
}

.tour-overview strong {
  display: block;
  margin-top: 5px;
  color: #ffd277;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.tour-overview strong small {
  color: #a68e89;
  font-family: "PingFang SC", sans-serif;
  font-size: 10px;
}

.tour-progress {
  height: 6px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.tour-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5b3f, #ff9c54, #ffd36d);
}

.tour-calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tour-calendar-head small {
  display: block;
  margin-bottom: 4px;
  color: #f0b36d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tour-calendar-head strong {
  display: block;
  color: #fff8ef;
  font-family: "Songti SC", serif;
  font-size: 20px;
}

.tour-calendar-head p {
  margin: 4px 0 0;
  color: #aa9692;
  font-size: 11px;
}

.tour-calendar-count {
  color: #ffd06d;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.tour-calendar-count small {
  display: inline;
  margin: 0;
  color: #9d8985;
  font-family: "PingFang SC", sans-serif;
  font-size: 10px;
}

.tour-next-preview {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 179, 112, 0.19);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  color: #ffd18c;
  text-align: left;
  cursor: pointer;
}

.tour-next-preview.tour-next-large {
  grid-template-columns: 116px minmax(0, 1fr) 24px;
  padding: 10px;
}

.tour-next-large .tour-next-photo {
  width: 116px;
  height: 84px;
}

.tour-next-large .tour-next-copy strong {
  font-size: 16px;
}

.tour-next-photo {
  display: block;
  width: 86px;
  height: 62px;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  filter: saturate(0.72) brightness(0.7) blur(2px);
}

.tour-next-copy {
  min-width: 0;
}

.tour-next-copy small {
  display: block;
  color: #d5a06c;
  font-size: 9px;
}

.tour-next-copy strong {
  display: block;
  margin-top: 3px;
  color: #fff7ed;
  font-size: 13px;
}

.tour-next-copy > span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #9e8c8a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-calendar-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin-top: 12px;
}

.tour-day {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #6f6060;
  font-size: 7px;
}

button.tour-day {
  cursor: pointer;
}

.tour-sprite-thumb {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
}

.tour-day.claimed {
  border-color: rgba(255, 203, 109, 0.35);
}

.tour-day.next {
  border-color: rgba(255, 176, 88, 0.62);
  box-shadow: 0 0 14px rgba(255, 135, 66, 0.16);
}

.tour-day.next .tour-sprite-thumb {
  filter: blur(2px) brightness(0.55);
}

.tour-day.next > span {
  position: absolute;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(25, 10, 12, 0.72);
  color: #ffd589;
}

.tour-calendar-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: #988580;
  font-size: 9px;
}

.tour-complete-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(255, 180, 73, 0.11);
  color: #ffd479;
  font-size: 12px;
  font-weight: 700;
}

.tour-card-detail {
  margin-top: 13px;
}

.tour-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background-color: #271015;
  background-repeat: no-repeat;
}

.tour-card-detail > span {
  color: #ffb574;
  font-size: 10px;
  font-weight: 700;
}

.tour-card-detail > strong {
  display: block;
  margin-top: 4px;
  color: #fff7ed;
  font-family: "Songti SC", serif;
  font-size: 22px;
}

.tour-card-detail > p {
  margin: 5px 0 0;
  color: #a99692;
  font-size: 11px;
}

.tour-locked-preview {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.tour-locked-preview .tour-locked-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  filter: blur(8px) brightness(0.55);
  transform: scale(1.04);
}

.tour-locked-preview span {
  position: absolute;
  inset: 50% auto auto 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(23, 9, 12, 0.8);
  color: #ffe0a0;
  font-size: 11px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.one-tap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 185, 142, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.one-tap-row > span {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: #aa9791;
  font-size: 9px;
  font-weight: 700;
}

.one-tap-row button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 169, 124, 0.2);
  border-radius: 999px;
  background: rgba(255, 111, 70, 0.08);
  color: #ffd0ac;
  font-size: 10px;
  cursor: pointer;
}

.home-reward-preview {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 11px;
  padding: 9px;
  border: 1px solid rgba(255, 185, 121, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 159, 77, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.03);
  color: #ffd08f;
  text-align: left;
  cursor: pointer;
}

.home-reward-photo {
  display: block;
  width: 64px;
  height: 50px;
  border-radius: 10px;
  background-repeat: no-repeat;
  filter: blur(1.8px) brightness(0.68);
}

.home-reward-preview small {
  display: block;
  color: #c89c6d;
  font-size: 9px;
}

.home-reward-preview strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #fff7ed;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-reward-link {
  color: #ffd287;
  font-size: 10px;
  white-space: nowrap;
}

.quick-action .q-icon {
  background: rgba(255, 111, 84, 0.13);
  color: #ffb29e;
}

.quick-action span {
  color: #918a9c;
}

.quick-action.highlight {
  border-color: rgba(255, 201, 92, 0.58);
  background:
    radial-gradient(circle at 75% 8%, rgba(255, 250, 205, 0.34), transparent 34%),
    linear-gradient(145deg, #ff925c, #ff5661 62%, #c82f67);
  color: #1a0810;
  box-shadow: 0 16px 35px rgba(255, 72, 90, 0.2);
}

.quick-action.highlight .q-icon {
  background: rgba(42, 9, 20, 0.12);
  color: #210914;
}

.quick-action.highlight span {
  color: rgba(38, 7, 18, 0.68);
}

.reminder-banner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(110, 218, 255, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(71, 208, 255, 0.16), transparent 35%),
    linear-gradient(130deg, rgba(20, 21, 42, 0.96), rgba(15, 12, 26, 0.96));
}

.reminder-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(103, 220, 255, 0.2);
  border-radius: 15px;
  background: rgba(49, 181, 255, 0.09);
  color: #77ddff;
}

.reminder-copy {
  min-width: 0;
}

.reminder-copy small {
  display: block;
  margin-bottom: 3px;
  color: #bb9dff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.reminder-copy strong {
  display: block;
  overflow: hidden;
  color: #fff8ef;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reminder-banner button {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: #ffdd9c;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.tonight-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px 14px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 185, 108, 0.17);
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 117, 76, 0.13), transparent 40%),
    linear-gradient(145deg, rgba(29, 20, 27, 0.95), rgba(12, 11, 20, 0.95));
}

.tonight-copy small {
  display: block;
  margin-bottom: 3px;
  color: #d49cff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.tonight-copy strong {
  color: #fff7ed;
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
}

.tonight-status {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 6px;
}

.tonight-status button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #948b9d;
  font-size: 9px;
  cursor: pointer;
}

.tonight-status button.done {
  border-color: rgba(255, 201, 92, 0.16);
  background: rgba(255, 195, 87, 0.08);
  color: #f4c96d;
}

.tonight-card > .secondary-button {
  grid-column: 1 / -1;
  min-height: 42px;
  padding: 9px 14px;
  border-color: rgba(255, 173, 110, 0.2);
  background: rgba(255, 116, 74, 0.08);
  color: #ffd0a2;
}

.calorie-card {
  position: relative;
  overflow: hidden;
}

.calorie-card::after {
  position: absolute;
  top: -55px;
  right: -45px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 71, 0.11), transparent 68%);
  content: "";
  pointer-events: none;
}

.calorie-number {
  color: #fff8ef;
}

.calorie-number small,
.calorie-copy {
  color: #9e96a7;
}

.progress-bar {
  background: #24202e;
}

.progress-fill {
  background: linear-gradient(90deg, #ff5a50, #ffad61, #ffd864);
  box-shadow: 0 0 18px rgba(255, 104, 76, 0.24);
}

.progress-fill.over {
  background: linear-gradient(90deg, #ff4b6d, #ff7f68);
}

.macro {
  background: rgba(255, 255, 255, 0.045);
}

.macro span {
  color: #8f8999;
}

.macro strong {
  color: #fdf2e6;
}

.calorie-foot {
  border-color: var(--line);
  color: #918a9a;
}

.calorie-foot strong {
  color: #ffcc72;
}

.meal-row {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(36, 31, 49, 0.82);
}

.meal-icon {
  background: linear-gradient(145deg, rgba(255, 99, 79, 0.14), rgba(101, 72, 188, 0.12));
  color: #ffac98;
}

.meal-copy strong {
  color: #fff9f0;
}

.meal-copy span,
.meal-kcal {
  color: #938c9d;
}

.meal-kcal b {
  color: #fff4e8;
}

.motivation {
  border: 1px solid rgba(255, 139, 110, 0.16);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 93, 89, 0.2), transparent 34%),
    linear-gradient(135deg, #241322, #111021);
}

.motivation::after {
  color: rgba(255, 182, 135, 0.09);
}

.motivation strong {
  color: #fff7ed;
}

.motivation p {
  color: #bfa7ac;
}

.stage-memory {
  position: relative;
  display: flex;
  min-height: 142px;
  align-items: flex-end;
  gap: 11px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(255, 183, 134, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(27, 11, 23, 0.95), rgba(21, 17, 34, 0.58) 58%, rgba(31, 19, 35, 0.25)),
    url("./images/mars-crowd.jpg") center 47% / cover no-repeat;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.23);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.stage-memory::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(12, 9, 18, 0.62));
  content: "";
}

.stage-memory > * {
  position: relative;
  z-index: 1;
}

.stage-live {
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid rgba(255, 239, 224, 0.45);
  border-radius: 5px;
  background: rgba(216, 27, 55, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.stage-memory strong {
  display: block;
  color: #fff9f0;
  font-family: "Songti SC", serif;
  font-size: 17px;
}

.stage-date {
  display: block;
  margin-top: 2px;
  color: #ffd48d;
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.stage-memory p {
  margin: 4px 0 0;
  color: rgba(255, 238, 230, 0.76);
  font-size: 12px;
  line-height: 1.55;
}

.mars-news-banner {
  position: relative;
  display: flex;
  min-height: 154px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  margin-top: 12px;
  padding: 17px;
  border: 1px solid rgba(255, 202, 116, 0.42);
  border-radius: 19px;
  background:
    linear-gradient(90deg, rgba(48, 14, 17, 0.9), rgba(76, 23, 22, 0.35) 58%, rgba(48, 14, 16, 0.18)),
    url("./images/fireworks-portrait.jpg") center 46% / cover no-repeat;
  box-shadow: 0 16px 38px rgba(255, 110, 57, 0.11);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mars-news-banner span {
  margin-bottom: 4px;
  color: #ffd78e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mars-news-banner strong {
  color: #fff8e8;
  font-family: "Songti SC", serif;
  font-size: 20px;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(53, 11, 15, 0.7);
}

.exercise-boost-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 188, 93, 0.25);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 190, 86, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(47, 32, 31, 0.95), rgba(28, 23, 38, 0.95));
}

.exercise-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 190, 77, 0.12);
  color: #ffc760;
}

.exercise-boost-card small {
  display: block;
  margin-bottom: 3px;
  color: #d69fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.exercise-boost-card strong {
  display: block;
  color: #fff8ed;
  font-size: 14.5px;
}

.exercise-boost-card p {
  overflow: hidden;
  margin: 3px 0 0;
  color: #a89eab;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exercise-boost-card > button {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 189, 92, 0.28);
  border-radius: 12px;
  background: rgba(255, 190, 79, 0.09);
  color: #ffd27a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.weekly-ticket {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 17px;
  border: 1px dashed rgba(255, 203, 111, 0.38);
  border-radius: 19px;
  background:
    linear-gradient(90deg, rgba(37, 23, 39, 0.95), rgba(24, 21, 37, 0.9) 58%, rgba(28, 20, 39, 0.72)),
    url("./images/fireworks-portrait.jpg") center 38% / cover no-repeat;
}

.weekly-ticket::before,
.weekly-ticket::after {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 1px dashed rgba(255, 203, 111, 0.32);
  border-radius: 50%;
  background: var(--paper);
  content: "";
  transform: translateY(-50%);
}

.weekly-ticket::before {
  left: -10px;
}

.weekly-ticket::after {
  right: -10px;
}

.weekly-ticket.complete {
  border-style: solid;
  border-color: rgba(255, 209, 105, 0.68);
  box-shadow: 0 12px 35px rgba(255, 182, 77, 0.12);
}

.ticket-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ticket-top small {
  display: block;
  margin-bottom: 5px;
  color: #d9a9ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ticket-top strong {
  display: block;
  color: #fff7eb;
  font-family: "Songti SC", serif;
  font-size: 18px;
}

.ticket-top p {
  margin: 5px 0 0;
  color: #aaa0ad;
  font-size: 11px;
  line-height: 1.5;
}

.ticket-score {
  color: #ffd26e;
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
  white-space: nowrap;
}

.ticket-score small {
  margin: 0;
  color: #8e8593;
  font-family: "PingFang SC", sans-serif;
  font-size: 11px;
}

.ticket-stamps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px dashed rgba(255, 255, 255, 0.13);
}

.ticket-stamp {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #837b8c;
  font-size: 9px;
}

.ticket-stamp i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: transparent;
  font-style: normal;
}

.ticket-stamp.done i {
  border-color: rgba(255, 205, 108, 0.45);
  background: linear-gradient(135deg, #ffd674, #ff7e5f);
  color: #291018;
}

.ticket-stamp.today span {
  color: #ffd27b;
  font-weight: 800;
}

.exercise-choice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 9px;
}

.exercise-choice-head strong {
  color: #fff7ed;
  font-size: 17px;
}

.exercise-choice-head span {
  color: #948b9d;
  font-size: 10px;
}

.exercise-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.exercise-type {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #b4aab8;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.exercise-type.selected {
  border-color: rgba(255, 178, 94, 0.52);
  background: rgba(255, 177, 70, 0.1);
  color: #ffd493;
}

.duration-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.duration-chips button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #9e95a3;
  font-size: 11px;
  cursor: pointer;
}

.duration-chips button.selected {
  border-color: rgba(255, 158, 92, 0.5);
  background: rgba(255, 115, 77, 0.11);
  color: #ffd0a3;
}

.exercise-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 192, 95, 0.16);
  border-radius: 15px;
  background: rgba(255, 181, 68, 0.055);
}

.exercise-result div {
  text-align: center;
}

.exercise-result span {
  display: block;
  color: #938b99;
  font-size: 9px;
}

.exercise-result strong {
  display: block;
  margin-top: 4px;
  color: #ffd172;
  font-family: Georgia, serif;
  font-size: 20px;
}

.exercise-result small {
  font-family: "PingFang SC", sans-serif;
  font-size: 9px;
}

.reward-card {
  position: fixed;
  z-index: 80;
  bottom: calc(144px + var(--safe-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(calc(100% - 28px), 460px);
  min-height: 128px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(255, 202, 113, 0.36);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(27, 12, 24, 0.95), rgba(27, 20, 39, 0.85)),
    var(--reward-image) var(--reward-position, center) / var(--reward-size, cover) no-repeat;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: auto;
  transform: translate(-50%, 18px) scale(0.98);
  transition: opacity 240ms ease, transform 240ms ease;
}

.reward-card.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.reward-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 8, 16, 0.68));
  content: "";
  pointer-events: none;
}

.reward-kicker,
.reward-copy,
.reward-ticket-count,
.reward-close {
  position: relative;
  z-index: 1;
}

.reward-kicker {
  grid-column: 1 / -1;
  align-self: start;
  color: #ffd27f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.reward-copy {
  align-self: end;
  padding-top: 18px;
}

.reward-copy strong {
  display: block;
  color: #fff9ef;
  font-family: "Songti SC", serif;
  font-size: 20px;
}

.reward-copy p {
  margin: 4px 0 0;
  color: rgba(255, 246, 237, 0.72);
  font-size: 11px;
  line-height: 1.5;
}

.reward-copy > span {
  display: block;
  margin-top: 5px;
  color: #ffd18b;
  font-size: 10px;
}

.reward-ticket-count {
  align-self: end;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #b8aead;
  font-size: 9px;
  white-space: nowrap;
}

.reward-ticket-count b {
  color: #ffd16f;
}

.reward-close {
  grid-row: 1;
  grid-column: 2;
  align-self: start;
  justify-self: end;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 8, 14, 0.46);
  color: #f4ebe6;
  cursor: pointer;
}

.ship-host .reward-card {
  bottom: calc(150px + var(--safe-bottom));
}

.streak {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(31, 27, 43, 0.76);
}

.streak-flame {
  background: rgba(255, 92, 65, 0.13);
  color: #ff8c68;
}

.streak strong {
  color: #fff7ed;
}

.bottom-nav {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(28, 24, 40, 0.92);
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(117, 59, 255, 0.08);
}

.nav-item {
  color: #827d8c;
}

.nav-item.active {
  background: linear-gradient(135deg, #ff6a55, #e73263);
  color: #fff7ed;
  box-shadow: 0 8px 22px rgba(255, 74, 92, 0.22);
}

.record-date-row,
.add-meal-card,
.entry-item,
.metric-cards .mini-stat,
.segmented,
.segment,
.budget-item,
.chart-card {
  border-color: var(--line);
}

.record-date-row,
.add-meal-card,
.entry-item,
.seed-card,
.mini-stat,
.budget-item {
  background: rgba(34, 29, 47, 0.92);
}

.record-date-row button {
  background: rgba(255, 255, 255, 0.07);
  color: #ffb58c;
}

.add-meal-card {
  border-color: rgba(255, 255, 255, 0.1);
}

.add-meal-card.active {
  border-color: rgba(255, 126, 92, 0.62);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 121, 80, 0.15), transparent 45%),
    rgba(35, 20, 29, 0.95);
}

.add-meal-card span,
.entry-copy span,
.entry-kcal {
  color: #948c9d;
}

.add-meal-card strong,
.entry-copy strong,
.entry-kcal b {
  color: #fff8ee;
}

.icon-button.favorite {
  color: #ffd36e;
  background: rgba(255, 201, 92, 0.08);
}

.meal-suggestion-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.meal-suggestion-head strong {
  color: #fff7ed;
  font-size: 13px;
}

.meal-suggestion-head span {
  color: #8f8899;
  font-size: 9px;
}

.meal-suggestion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 18px;
}

.meal-suggestion {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #d2c6d4;
  text-align: left;
  cursor: pointer;
}

.meal-suggestion span {
  overflow: hidden;
  color: #eee5ed;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-suggestion small {
  grid-column: 2;
  color: #ffc879;
  font-family: Georgia, serif;
  font-size: 10px;
}

.entry-thumb {
  background: rgba(255, 255, 255, 0.06);
  color: #ffac8b;
}

.empty-state {
  border-color: rgba(255, 255, 255, 0.14);
  color: #918a9c;
}

.empty-mark {
  background: rgba(255, 108, 77, 0.13);
  color: #ffad8e;
}

.empty-state strong {
  color: #fff6ec;
}

.segment {
  background: #292437;
}

.segment button {
  color: #90899a;
}

.segment button.active {
  background: linear-gradient(135deg, rgba(255, 100, 78, 0.24), rgba(108, 70, 197, 0.18));
  color: #fff7ee;
  box-shadow: inset 0 0 0 1px rgba(255, 150, 113, 0.18);
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.09);
}

.chart-line {
  stroke: #ff715e;
  filter: drop-shadow(0 0 5px rgba(255, 98, 79, 0.3));
}

.chart-dot {
  fill: #15131e;
  stroke: #ffd06e;
}

.chart-change {
  background: rgba(255, 198, 90, 0.13);
  color: #ffd276 !important;
}

.chart-change.up {
  background: rgba(255, 90, 112, 0.13);
  color: #ff8fa2 !important;
}

.cal-bar {
  background: linear-gradient(180deg, #ffcf68, #ff6a55);
  box-shadow: 0 0 12px rgba(255, 103, 74, 0.12);
}

.cal-bar.over {
  background: linear-gradient(180deg, #ff7b8a, #d52e62);
}

.target-line {
  border-color: rgba(192, 184, 211, 0.52);
}

.target-line span {
  background: #0d0c16;
  color: #958fa0;
}

.mini-stat {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-stat span {
  color: #908896;
}

.mini-stat strong {
  color: #fff6eb;
}

.waist-row {
  border-color: var(--line);
}

.waist-row span {
  color: #938c9e;
}

.waist-row strong {
  color: #fff5e8;
}

.plan-hero {
  border: 1px solid rgba(255, 209, 119, 0.35);
  background:
    radial-gradient(circle at 82% 5%, rgba(255, 247, 202, 0.32), transparent 32%),
    linear-gradient(135deg, #ffd46d 0%, #ff8c58 48%, #f24e63 100%);
  box-shadow: 0 24px 60px rgba(255, 80, 71, 0.15);
}

.plan-hero::after {
  border-color: rgba(71, 15, 39, 0.12);
}

.plan-hero .eyebrow {
  color: #5d1527;
}

.plan-weight,
.plan-weight strong,
.plan-weight span,
.plan-split span,
.plan-split strong {
  color: #201017;
}

.plan-split div {
  background: rgba(255, 255, 255, 0.34);
}

.info-banner {
  border: 1px solid rgba(94, 199, 255, 0.12);
  background:
    radial-gradient(circle at 90% 0%, rgba(77, 209, 255, 0.13), transparent 36%),
    #101827;
}

.info-banner .b-icon {
  background: rgba(92, 211, 255, 0.1);
  color: #6fdaff;
}

.info-banner strong {
  color: #edf8ff;
}

.info-banner p {
  color: #899daa;
}

.budget-item span {
  color: #958e9e;
}

.budget-item strong {
  color: #fff5eb;
}

.plateau-banner {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 203, 104, 0.2);
  border-radius: 15px;
  background: rgba(255, 185, 74, 0.07);
  color: #ffd37a;
}

.plateau-banner strong {
  display: block;
  color: #ffe2a5;
  font-size: 11px;
}

.plateau-banner p {
  margin: 4px 0 0;
  color: #ad9975;
  font-size: 9px;
  line-height: 1.55;
}

.trend-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #948c9e;
  font-size: 9px;
}

.weekly-snapshot {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.weekly-snapshot div {
  padding: 13px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.weekly-snapshot span {
  display: block;
  color: #8f8797;
  font-size: 8px;
}

.weekly-snapshot strong {
  display: block;
  margin-top: 5px;
  color: #fff6eb;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}

.weekly-snapshot small {
  color: #8e8798;
  font-family: "PingFang SC", sans-serif;
  font-size: 8px;
}

.alcohol-budget-track {
  overflow: hidden;
  height: 5px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.alcohol-budget-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #55d6ff, #a56bff, #ff7e61);
}

.review-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 15px;
}

.review-hero div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 111, 79, 0.1), transparent 45%),
    rgba(255, 255, 255, 0.035);
}

.review-hero span {
  display: block;
  color: #8f8797;
  font-size: 8px;
}

.review-hero strong {
  display: block;
  margin-top: 5px;
  color: #fff7ed;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.review-hero small {
  color: #8e8798;
  font-family: "PingFang SC", sans-serif;
  font-size: 9px;
}

.review-alcohol-row {
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(93, 207, 255, 0.12);
  border-radius: 14px;
  background: rgba(61, 170, 255, 0.055);
  color: #70d9ff;
}

.review-alcohol-row strong {
  display: block;
  color: #ddf3ff;
  font-size: 11px;
}

.review-alcohol-row p {
  margin: 3px 0 0;
  color: #8198a9;
  font-size: 8px;
}

.review-notes {
  margin-top: 13px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.review-notes strong {
  color: #efe6ec;
  font-size: 11px;
}

.review-notes p {
  margin: 7px 0 0;
  color: #958d9c;
  font-size: 9px;
  line-height: 1.55;
}

.habit-card {
  border-color: var(--line);
}

.habit-check {
  border-color: rgba(255, 255, 255, 0.18);
  color: transparent;
}

.habit-check.done {
  border-color: #ff8f65;
  background: linear-gradient(135deg, #ff7a55, #dd325f);
  color: #fff8ed;
}

.habit-copy strong {
  color: #fff7ed;
}

.habit-copy p {
  color: #948c9e;
}

.drink-card {
  border: 1px solid rgba(111, 203, 255, 0.14);
  background:
    radial-gradient(circle at 90% 0%, rgba(55, 175, 255, 0.18), transparent 34%),
    radial-gradient(circle at 10% 100%, rgba(168, 67, 255, 0.16), transparent 37%),
    #0d0c17;
}

.drink-card .eyebrow {
  color: #ff9c88;
}

.drink-card p,
.swap-row span {
  color: rgba(244, 239, 250, 0.59);
}

.swap-row b {
  color: #ffd06d;
}

.settings-profile,
.settings-row {
  background: rgba(34, 29, 47, 0.94);
}

.avatar {
  border: 1px solid rgba(255, 165, 105, 0.3);
  background: linear-gradient(135deg, #ff7b55, #b31c5b 60%, #37163e);
  color: #fff8e4;
}

.settings-row {
  border-color: var(--line);
}

.settings-row-copy strong {
  color: #fff7ec;
}

.settings-row-copy span,
.settings-row > span {
  color: #8f8899;
}

.field label {
  color: #a9a1b1;
}

.input-wrap input,
.field > input,
.field > select,
.field > textarea,
.input-wrap select {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.075);
  color: #fff7ed;
}

.input-wrap input::placeholder,
.field > input::placeholder {
  color: #6e6876;
}

.primary-button {
  border-color: #ff6854;
  background: linear-gradient(135deg, #ff7a54, #e93662);
  color: #fff8ee;
  box-shadow: 0 12px 26px rgba(255, 63, 91, 0.16);
}

.primary-button.lime {
  border-color: #ffca66;
  background: linear-gradient(135deg, #ffdb7d, #ffb454);
  color: #26100d;
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  color: #fff6ea;
}

.ghost-button {
  color: #ffad83;
}

.danger-button {
  border-color: rgba(255, 83, 109, 0.22);
  background: rgba(112, 21, 42, 0.32);
  color: #ff8da0;
}

.modal {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 100, 88, 0.14), transparent 36%),
    #14111d;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.modal-handle {
  background: rgba(255, 255, 255, 0.18);
}

.modal-head,
.modal-footer {
  border-color: var(--line);
}

.modal-footer {
  background: #14111d;
}

.modal-close {
  background: rgba(255, 255, 255, 0.07);
  color: #d8d2dc;
}

.photo-drop {
  border-color: rgba(255, 255, 255, 0.17);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 104, 78, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.035);
}

.camera-mark {
  background: linear-gradient(135deg, #ff7955, #d92e64);
  color: #fff8ee;
}

.photo-drop p {
  color: #91899b;
}

.ai-setup {
  background: rgba(255, 201, 100, 0.08);
  color: #ffda95;
}

.ai-setup p {
  color: #b6a177;
}

.scanner {
  border-color: #ff715e;
}

.scanner::before {
  background: #ffd06d;
  box-shadow: 0 0 15px rgba(255, 203, 105, 0.8);
}

.analysis-total {
  color: #fff7ed;
}

.analysis-total small,
.food-item span,
.confidence {
  color: #9f98a7;
}

.confidence {
  background: rgba(255, 198, 92, 0.1);
  color: #ffd17a;
}

.food-item {
  background: rgba(255, 255, 255, 0.05);
}

.food-item strong {
  color: #ffc56a;
}

.common-food-search input {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #fff7ed;
}

.food-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #c9c2d0;
}

.food-chip.selected {
  border-color: rgba(255, 133, 91, 0.7);
  background: rgba(255, 105, 77, 0.13);
  color: #ffe3d3;
}

.checkin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.checkin-tag {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #a59dab;
  font-size: 10px;
  cursor: pointer;
}

.checkin-tag.selected {
  border-color: rgba(255, 157, 101, 0.5);
  background: rgba(255, 105, 78, 0.12);
  color: #ffd1af;
}

.no-drink-check {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  color: #aaa2b0;
  font-size: 11px;
  cursor: pointer;
}

.no-drink-check input {
  width: 17px;
  height: 17px;
  accent-color: #ff6d56;
}

.no-drink-check span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.api-note {
  background: rgba(72, 168, 255, 0.08);
  color: #9bb7ca;
}

.api-note a {
  color: #7bd4ff;
}

.reminder-app-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.reminder-app-row .reminder-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.reminder-app-row strong {
  display: block;
  color: #fff7ed;
  font-size: 12px;
}

.reminder-app-row p {
  margin: 3px 0 0;
  color: #8f8899;
  font-size: 9px;
  line-height: 1.55;
}

.reminder-app-row > button {
  padding: 8px 11px;
  border: 1px solid rgba(255, 138, 101, 0.3);
  border-radius: 999px;
  background: rgba(255, 98, 74, 0.11);
  color: #ffc393;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.alcohol-budget-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 16px;
}

.alcohol-budget-strip div {
  padding: 12px 8px;
  border: 1px solid rgba(111, 207, 255, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 80% 0%, rgba(72, 192, 255, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.035);
  text-align: center;
}

.alcohol-budget-strip span {
  display: block;
  color: #8e8798;
  font-size: 8px;
}

.alcohol-budget-strip strong {
  display: block;
  margin-top: 4px;
  color: #f5eef0;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 500;
}

.drink-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 9px;
}

.drink-section-head small {
  display: block;
  margin-bottom: 2px;
  color: #a78ce8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.drink-section-head strong {
  color: #fff7ed;
  font-family: "Songti SC", serif;
  font-size: 19px;
}

.drink-section-head button {
  border: 0;
  background: transparent;
  color: #ffb184;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.drink-head-actions {
  display: flex;
  gap: 9px;
}

.drink-head-actions button:first-child {
  color: #8fa3b6;
}

.drink-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drink-profile {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
}

.drink-profile::after {
  position: absolute;
  right: -14px;
  bottom: -22px;
  width: 72px;
  height: 72px;
  border: 12px solid rgba(111, 205, 255, 0.04);
  border-radius: 50%;
  content: "";
}

.drink-profile.selected {
  border-color: rgba(255, 145, 101, 0.54);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 112, 79, 0.16), transparent 42%),
    rgba(255, 100, 76, 0.07);
  box-shadow: 0 0 24px rgba(255, 83, 73, 0.08);
}

.drink-profile > span {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff8ee;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.drink-profile > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 13px;
  color: #ffcd74;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.drink-profile > strong small {
  color: #8e8798;
  font-family: "PingFang SC", sans-serif;
  font-size: 8px;
}

.drink-profile > small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 3px;
  color: #817b8b;
  font-size: 8px;
}

.alcohol-calculator {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(78, 210, 255, 0.1), transparent 38%),
    rgba(8, 10, 20, 0.68);
}

.alcohol-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alcohol-qty-row label {
  color: #d4ccd8;
  font-size: 12px;
  font-weight: 600;
}

.qty-stepper {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.qty-stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #ffc392;
  font-size: 16px;
  cursor: pointer;
}

.qty-stepper input {
  width: 44px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff7ed;
  font-family: Georgia, serif;
  font-size: 17px;
  text-align: center;
}

.alcohol-result {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
}

.alcohol-result > div:first-child span {
  display: block;
  color: #8e8798;
  font-size: 9px;
}

.alcohol-result > div:first-child strong {
  display: block;
  margin-top: 3px;
  color: #ffd270;
  font-family: Georgia, serif;
  font-size: 35px;
  font-weight: 500;
  line-height: 1;
}

.alcohol-result > div:first-child small {
  font-family: "PingFang SC", sans-serif;
  font-size: 10px;
}

.alcohol-result.over > div:first-child strong {
  color: #ff7788;
}

.alcohol-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.alcohol-result-grid span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #898290;
  font-size: 8px;
}

.alcohol-result-grid strong {
  color: #e9e1e7;
  font-size: 11px;
}

#log-alcohol-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.backup-nudge {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 190, 102, 0.16);
  border-radius: 14px;
  background: rgba(255, 183, 75, 0.06);
  color: #ffcf79;
}

.backup-nudge strong {
  display: block;
  color: #f3e1c9;
  font-size: 10px;
}

.backup-nudge p {
  margin: 2px 0 0;
  color: #9b8f85;
  font-size: 8px;
}

.backup-nudge button {
  border: 0;
  background: transparent;
  color: #ffd688;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.body-photo-drop {
  position: relative;
  min-height: 190px;
}

.body-photo-preview {
  width: 100%;
  height: 250px;
  border-radius: 18px;
  object-fit: cover;
}

.archive-history {
  margin-top: 18px;
}

.archive-history > strong {
  display: block;
  margin-bottom: 9px;
  color: #f7edea;
  font-size: 12px;
}

.archive-history > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.archive-history figure {
  min-width: 0;
  margin: 0;
}

.archive-history img,
.archive-no-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #9ca4ad;
  object-fit: cover;
}

.archive-history figcaption {
  overflow: hidden;
  margin-top: 5px;
  color: #8f8797;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-steps {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.guide-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 115, 79, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.guide-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd374, #ff7759);
  color: #261017;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.guide-step strong {
  display: block;
  color: #fff8ed;
  font-size: 15px;
}

.guide-step p {
  margin: 5px 0 10px;
  color: #aaa1ad;
  font-size: 12px;
  line-height: 1.65;
}

.guide-step button {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 167, 107, 0.24);
  border-radius: 11px;
  background: rgba(255, 112, 75, 0.1);
  color: #ffd0a0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.guide-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(84, 188, 255, 0.07);
  color: #91a9b8;
  font-size: 10px;
  line-height: 1.55;
}

.concert-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 15px;
}

.concert-gallery-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.concert-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.concert-gallery-grid figcaption {
  padding: 9px;
}

.concert-gallery-grid figcaption strong {
  display: block;
  color: #fff8ed;
  font-size: 12px;
}

.concert-gallery-grid figcaption span {
  display: block;
  margin-top: 3px;
  color: #9c93a1;
  font-size: 9px;
  line-height: 1.45;
}

.app-shell {
  font-size: 17px;
}

.section-head {
  flex-wrap: wrap;
  row-gap: 7px;
}

.section-head h2 {
  flex-shrink: 0;
}

.section-head .text-button {
  margin-left: auto;
}

.subcopy {
  font-size: 15.5px;
  line-height: 1.72;
}

h2 {
  font-size: 27px;
}

h3 {
  font-size: 20px;
}

.section-head .text-button,
.text-button {
  min-height: 34px;
  font-size: 13px;
}

.hero-label {
  font-size: 13px;
}

.phase-pill {
  font-size: 12px;
}

.weight-delta {
  font-size: 13px;
}

.hero-stat span {
  font-size: 11.5px;
}

.hero-stat strong {
  font-size: 20px;
}

.reminder-copy small {
  font-size: 9px;
}

.reminder-copy strong {
  font-size: 14.5px;
  line-height: 1.35;
  white-space: normal;
}

.reminder-banner button {
  min-height: 34px;
  font-size: 11px;
}

.calorie-number small {
  font-size: 12px;
}

.calorie-copy {
  font-size: 12px;
}

.macro span {
  font-size: 10.5px;
}

.macro strong {
  font-size: 17px;
}

.calorie-foot {
  font-size: 11px;
}

.calorie-foot strong {
  font-size: 17px;
}

.meal-copy strong {
  font-size: 15px;
}

.meal-copy span {
  font-size: 11px;
}

.meal-kcal {
  font-size: 11px;
}

.meal-kcal b {
  font-size: 22px;
}

.motivation strong {
  font-size: 20px;
}

.motivation p {
  font-size: 13.5px;
}

.streak strong {
  font-size: 14px;
}

.streak p {
  font-size: 11px;
}

.bottom-nav {
  height: 78px;
}

.nav-item {
  font-size: 11px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.record-date-row strong {
  font-size: 15px;
}

.field label {
  font-size: 14px;
}

.input-wrap input,
.field > input,
.field > select,
.field > textarea,
.input-wrap select {
  min-height: 52px;
  font-size: 16px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 52px;
  font-size: 15px;
}

.add-meal-card span {
  font-size: 11px;
}

.add-meal-card strong {
  font-size: 19px;
}

.entry-copy strong {
  font-size: 14.5px;
}

.entry-copy span,
.entry-kcal {
  font-size: 11px;
}

.entry-kcal b {
  font-size: 18px;
}

.icon-button {
  width: 38px;
  height: 38px;
}

.empty-state strong {
  font-size: 15px;
}

.empty-state p {
  font-size: 12.5px;
}

.segment button {
  min-height: 40px;
  font-size: 12.5px;
}

.mini-stat span,
.budget-item span,
.weekly-snapshot span {
  font-size: 10px;
}

.mini-stat strong,
.budget-item strong {
  font-size: 19px;
}

.habit-copy strong {
  font-size: 14.5px;
}

.habit-copy p {
  font-size: 11.5px;
}

.settings-row {
  min-height: 82px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.settings-row-copy strong {
  font-size: 16px;
  line-height: 1.4;
}

.settings-row-copy span,
.settings-row > span {
  font-size: 13px;
  line-height: 1.45;
}

.settings-row svg {
  width: 20px;
  height: 20px;
}

.settings-profile {
  padding: 20px;
}

.settings-profile strong {
  font-size: 22px;
}

.settings-profile span {
  font-size: 14px;
}

.helper {
  font-size: 12px;
  line-height: 1.6;
}

.modal-head h2 {
  font-size: 26px;
}

.food-chip,
.checkin-tag {
  min-height: 38px;
  font-size: 11.5px;
}

.meal-suggestion {
  min-height: 48px;
}

.meal-suggestion span {
  font-size: 11.5px;
}

.meal-suggestion small {
  font-size: 11px;
}

.drink-profile > span {
  font-size: 13px;
}

.drink-profile > strong {
  font-size: 24px;
}

.drink-profile > small {
  font-size: 9px;
}

.ship-host .app-shell {
  padding-bottom: calc(172px + var(--safe-bottom));
}

.ship-host .bottom-nav {
  bottom: calc(58px + var(--safe-bottom));
}

.ship-host .toast {
  bottom: calc(148px + var(--safe-bottom));
}

.ship-host .modal-backdrop {
  padding-bottom: calc(60px + var(--safe-bottom));
}

.ship-host .modal {
  max-height: min(78dvh, 760px);
}

.ship-host .modal-body {
  max-height: calc(78dvh - 137px);
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #211722;
  color: #fff6e9;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.green-text {
  color: #ffd072 !important;
}

.danger-text {
  color: #ff899a !important;
}

@media (min-width: 720px) {
  .app-shell {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(7, 7, 12, 0.45);
    backdrop-filter: blur(16px);
  }
}

@media (max-width: 360px) {
  .topbar {
    gap: 8px;
  }

  .brand {
    gap: 7px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 7px;
    letter-spacing: 0.03em;
  }

  .date-chip {
    padding: 8px 9px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-aurora,
  .stage-stars,
  .stage-rain {
    animation: none;
  }
}
