@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #14161b;
  --card: #202228;
  --soft: #2c2e34;
  --line: #393a40;
  --gold: #e5c78c;
  --text: #f3f3f3;
  --muted: #b0b1b7;
  --serif: Georgia, "Times New Roman", serif;
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
a {
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
p {
  line-height: 1.7;
}
h1,
h2,
h3 {
  line-height: 1.22;
}
h2,
h3 {
  overflow-wrap: anywhere;
}
h1 {
  font: normal clamp(2.4rem, 4.5vw, 4.1rem)/1 var(--serif);
  letter-spacing: -0.055em;
}
h2 {
  font-size: 1.65rem;
  letter-spacing: -0.055em;
}
h3 {
  font-size: 1.23rem;
  letter-spacing: -0.04em;
}
.muted,
small {
  color: var(--muted);
}
.gold,
.bar-label strong {
  color: var(--gold);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
#top {
  border-bottom: 1px solid #ffffff12;
  background: #16171c;
}
.top-inner {
  max-width: 1312px;
  margin: auto;
  padding: 0 clamp(22px, 5.4vw, 80px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  letter-spacing: -0.07em;
  font: bold italic 2.2rem/1 var(--serif);
}
.brand-dot {
  color: var(--gold);
}
.brand-mark {
  font: normal 36px/1 Georgia;
  color: var(--gold);
  margin-right: 11px;
}
.top-actions,
.mode,
.balance,
.icon-button,
.kicker,
.date,
.actions,
.primary,
.secondary,
.text-btn,
.nav-inner a,
.section-head,
.bar-label,
.weekly-title,
.row,
.form-actions,
.range,
.filters {
  display: flex;
  align-items: center;
}
.top-actions {
  gap: 20px;
}
.mode,
.date,
.balance {
  gap: 8px;
}
.mode,
.date {
  font-size: 0.85rem;
  color: var(--muted);
}
.mode svg,
.date svg {
  width: 16px;
}
.balance {
  color: var(--gold);
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.balance b {
  color: #faf2df;
}
.icon-button {
  height: 44px;
  min-width: 44px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.icon-button:hover,
.secondary:hover,
.row:hover {
  background: #ffffff09;
}
main {
  max-width: 1312px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 58px) clamp(22px, 5.4vw, 80px) 120px;
}
.headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 25px;
}
.headline p {
  color: var(--muted);
  margin-top: 9px;
  font-size: 0.95rem;
}
.date {
  align-self: flex-end;
  padding-bottom: 4px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #49433b;
  background: #191a1c;
  min-height: 335px;
  display: flex;
  align-items: center;
}
.sculpture {
  position: absolute;
  inset: 0 0 0 39%;
  z-index: -1;
  background: url("/sculpture.png") center 48% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 18%);
}
.hero-content {
  padding: 36px clamp(28px, 3.7vw, 54px);
  width: 61%;
  max-width: 750px;
}
.kicker {
  font:
    bold 0.77rem/1.3 -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #c3b399;
  letter-spacing: 0.14em;
  gap: 9px;
}
.kicker svg {
  width: 17px;
  height: 17px;
}
.hero .kicker {
  color: var(--gold);
}
.hero h2 {
  font-size: clamp(2.1rem, 3.3vw, 3.3rem);
  letter-spacing: -0.065em;
  font-weight: 650;
  line-height: 1.17;
  margin: 21px 0 12px;
  text-wrap: balance;
}
.hero p {
  color: #bdbbb8;
  font-size: 0.95rem;
  word-break: keep-all;
}
.project-label {
  display: inline-block;
  color: var(--muted);
  margin: 12px 0 -10px;
}
.hero .actions {
  margin-top: 25px;
}
.actions,
.form-actions,
.filters {
  flex-wrap: wrap;
  gap: 10px;
}
.primary,
.secondary,
.text-btn {
  gap: 7px;
  min-height: 44px;
  justify-content: center;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 10px 17px;
}
.primary {
  background: var(--gold);
  color: #28231a;
  border: 1px solid #f1d69e;
}
.primary:hover {
  background: #f4d8a2;
}
.secondary {
  border: 1px solid #48484c;
  background: #28292e;
  color: #f2f0ed;
}
.text-btn {
  color: var(--muted);
  padding-inline: 8px;
}
.primary svg,
.secondary svg {
  width: 17px;
  height: 17px;
}
.mobile-only {
  display: none;
}
.mission-details p {
  white-space: pre-line;
}
.mission-details b {
  color: #d3c7b5;
}
.overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.card {
  border: 1px solid #37383e;
  border-radius: 15px;
  background: var(--card);
  padding: 25px 29px;
  min-width: 0;
}
.goal-mini {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 17px 0 13px;
}
.goal-mini h3 {
  font: normal 1.6rem/1.3 var(--serif);
  letter-spacing: -0.035em;
}
.goal-mini .muted {
  font-size: 0.85rem;
}
.more {
  margin-left: auto;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 0;
}
.product-art {
  width: 57px;
  height: 64px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #474342;
  border-radius: 9px;
  background: radial-gradient(
    ellipse at 40% 35%,
    #56514d,
    #383738 63%,
    #2b2b2e
  );
}
.product-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.phone {
  width: 23px;
  height: 42px;
  border: 1px solid #b5a796;
  border-radius: 5px;
  background: linear-gradient(120deg, #9d978c, #595653 62%, #92877a);
  box-shadow:
    2px 1px 0 #262523,
    4px 5px 6px #0007;
  transform: rotate(13deg);
  position: relative;
}
.lenses {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 10px;
  height: 12px;
  display: grid;
  grid-template-columns: repeat(2, 4px);
  align-content: start;
  gap: 1px;
}
.lenses i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #222;
  border: 1px solid #aaa;
}
.bar-label,
.weekly-title,
.section-head {
  justify-content: space-between;
  gap: 10px;
}
.bar-label {
  margin: 12px 0 7px;
  font-size: 0.85rem;
  color: var(--muted);
}
.track {
  height: 5px;
  border-radius: 10px;
  overflow: hidden;
  background: #444448;
}
.track i {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
  transition: width 0.65s ease;
}
.weekly-title {
  margin-top: 20px;
}
.weekly-title span {
  font-size: 0.85rem;
  color: var(--muted);
}
.weekly-title strong {
  color: var(--text);
  margin: 0 3px;
}
.week-strip {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.day {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.day span {
  color: var(--muted);
  font-size: 0.8rem;
}
.day b {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #292b31;
  border: 1px solid #383a41;
  border-radius: 7px;
  height: 29px;
  margin-top: 4px;
  color: #a7a5a3;
  font-size: 0.9rem;
}
.day.today b {
  border-color: #857654;
  color: var(--gold);
  background: #363229;
}
.day.did b {
  background: #6a5b3e;
  color: #fff;
}
#nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: #17191ef5;
  border-top: 1px solid #34353b;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-inner {
  display: flex;
  max-width: 930px;
  margin: auto;
  justify-content: space-around;
}
.nav-inner a {
  position: relative;
  justify-content: center;
  gap: 9px;
  min-height: 69px;
  flex: 1;
  color: #a6a7ae;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.13em;
}
.nav-inner a[aria-current] {
  color: var(--gold);
}
.nav-inner a[aria-current]:before {
  content: "";
  position: absolute;
  top: -1px;
  width: 52px;
  height: 2px;
  background: var(--gold);
}
.nav-inner a:hover {
  background: #ffffff04;
}
.section-head {
  margin: 24px 0 15px;
}
.section-head span {
  color: var(--muted);
}
.card > .section-head:first-child {
  margin-top: 0;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px;
}
.project-grid,
.collection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}
.project-grid h2,
.reward-hero h2 {
  margin: 17px 0;
}
.card p {
  color: var(--muted);
}
.project-grid .secondary {
  margin-top: 15px;
}
.metrics,
.stats {
  display: flex;
  gap: 14px;
}
.metrics {
  margin: 20px 0;
}
.metrics span,
.stat {
  color: var(--muted);
  font-size: 0.85rem;
}
.metrics b,
.stat b {
  display: block;
  color: var(--text);
  font: normal 2rem var(--serif);
}
.stats {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.stat b {
  margin-top: 6px;
}
.reward-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.product-art.large {
  width: 100%;
  height: 260px;
  border-radius: 12px;
}
.large .phone {
  transform: rotate(13deg) scale(3.8);
}
.large > svg {
  width: 64px;
  height: 64px;
  color: var(--muted);
}
.big-number {
  font: normal 2.5rem/1.4 var(--serif);
  letter-spacing: -0.035em;
  color: var(--gold);
}
.big-number small {
  font-size: 1rem;
  color: var(--gold);
}
.milestones {
  display: flex;
  justify-content: space-between;
  margin-left: 24%;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.reward-hero a {
  color: var(--gold);
  text-decoration: underline;
}
.collection h3 {
  margin: 14px 0 7px;
}
.collection .large {
  height: 160px;
}
.collection .large .phone {
  transform: rotate(13deg) scale(2.5);
}
.filters {
  justify-content: space-between;
}
.seg {
  display: flex;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 10px;
  background: #202126;
}
.seg button {
  color: var(--muted);
  min-height: 38px;
  padding: 4px 14px;
  border-radius: 7px;
}
.seg .selected {
  background: #3b392f;
  color: var(--gold);
}
.range {
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 14px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow: auto;
  min-height: 145px;
}
.bar-group {
  flex: 1;
  min-width: 20px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}
.bar-group i {
  display: block;
  min-height: 1px;
  background: #d4b983;
  border-radius: 4px 4px 0 0;
  margin: 3px auto;
  width: 70%;
  max-width: 50px;
}
.bar-group small {
  font-size: 0.75rem;
}
.line-chart {
  display: block;
  width: 100%;
  height: 90px;
  border-bottom: 1px solid var(--line);
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 13px;
  text-align: center;
}
.calendar button {
  min-height: 40px;
  border-radius: 6px;
  background: var(--soft);
}
.calendar .used {
  color: #231f18;
  background: var(--gold);
}
.row {
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 15px 3px;
}
.row > div:first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.row small {
  display: block;
}
.row h3 {
  font-size: 1.08rem;
  margin: 4px 0;
}
.row > b {
  white-space: nowrap;
}
.row button {
  margin-left: auto;
}
details.card {
  margin: 18px 0;
}
dialog {
  color: var(--text);
  background: #212329;
  border: 1px solid #484950;
  border-radius: 16px;
  padding: 25px;
  max-width: min(520px, calc(100% - 24px));
  width: 100%;
  max-height: 85dvh;
  box-shadow: 0 24px 95px #0009;
}
dialog::backdrop {
  background: #050609a8;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.dialog-head h2 {
  font-size: 1.5rem;
}
.dialog-head button {
  border: 0;
}
.field {
  display: block;
  margin: 14px 0;
}
.field > span,
legend {
  display: block;
  color: #d6d5d4;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  color: var(--text);
  padding: 10px 12px;
  background: #181a1f;
  border: 1px solid #484950;
  border-radius: 8px;
  min-height: 44px;
  max-width: 100%;
}
.field input,
.field select,
textarea {
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 75px;
}
input[type="file"] {
  font-size: 0.88rem;
}
details {
  margin: 14px 0;
}
summary {
  padding: 9px 0;
  color: #d6c9ac;
}
select {
  appearance: none;
  padding-right: 30px;
  background-image:
    linear-gradient(45deg, transparent 50%, #aaa 50%),
    linear-gradient(135deg, #aaa 50%, transparent 50%);
  background-position:
    calc(100% - 14px) center,
    calc(100% - 9px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.form-actions {
  justify-content: flex-end;
  margin-top: 20px;
}
.account {
  padding: 14px;
  background: #2c2e34;
  border-radius: 8px;
  margin-bottom: 12px;
}
.account p,
dialog p {
  color: var(--muted);
  word-break: keep-all;
}
dialog h3 {
  margin: 22px 0 8px;
}
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.switch input {
  width: 23px;
  height: 23px;
  accent-color: var(--gold);
}
.error {
  color: #ffb4a0;
  margin-top: 10px;
}
.error:empty {
  display: none;
}
dt {
  font-size: 0.85rem;
  color: var(--muted);
}
dd {
  margin: 4px 0 13px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
fieldset {
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 14px 0;
  padding: 0 0 10px;
}
.radio {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-right: 10px;
}
.radio input {
  accent-color: var(--gold);
}
.celebrate {
  text-align: center;
  padding: 5px 5px 12px;
}
.celebrate .kicker,
.celebrate .actions {
  justify-content: center;
}
.celebrate .spark svg {
  width: 48px;
  height: 48px;
  color: var(--gold);
}
#won {
  font: normal 4rem var(--serif);
  color: var(--gold);
  display: block;
  margin: 15px 0;
}
.celebrate .track {
  margin: 11px 0 20px;
}
.celebrate .actions {
  margin-top: 20px;
}
.celebrate .spark {
  animation: glow 0.8s ease-out;
}
@keyframes glow {
  from {
    transform: scale(0.45);
    opacity: 0.2;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.still * {
  animation: none !important;
  transition: none !important;
}
#toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 95px;
  z-index: 8;
  background: #e9ddc4;
  color: #302b22;
  border-radius: 9px;
  padding: 10px 15px;
  pointer-events: none;
  opacity: 0;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
}
.offline {
  background: #423a2c;
  border-radius: 8px;
  padding: 9px 15px;
  margin-bottom: 12px;
  color: #f3dfb3;
}
.offline button {
  display: inline-flex;
}
.login {
  max-width: 470px;
  margin: 30px auto;
}
.login h1 {
  margin: 20px 0;
  font-size: 2.3rem;
}
.saving button {
  cursor: wait;
}
.mission-details {
  overflow-wrap: anywhere;
}
@media (min-width: 1450px) {
  main {
    padding-top: 60px;
  }
  .hero {
    min-height: 380px;
  }
}
@media (max-width: 720px) {
  .top-inner {
    height: 60px;
    padding: 0 18px;
  }
  .brand {
    font-size: 1.85rem;
  }
  .brand-mark {
    font-size: 29px;
    margin-right: 7px;
  }
  .top-actions {
    gap: 10px;
  }
  .balance {
    padding-left: 10px;
    font-size: 0.88rem;
  }
  .mode {
    font-size: 0.76rem;
    gap: 4px;
  }
  .top-actions .icon-button {
    border: 0;
    width: 40px;
    min-width: 40px;
  }
  .headline {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 17px;
  }
  .headline p {
    font-size: 0.88rem;
  }
  .date {
    font-size: 0.76rem;
  }
  .headline h1 {
    font-size: 2.5rem;
  }
  .hero {
    min-height: 305px;
    border-radius: 14px;
    align-items: center;
  }
  .hero-content {
    width: 75%;
    padding: 25px 20px;
  }
  .sculpture {
    inset: 0 -16% 0 31%;
    background-size: auto 80%;
    background-position: 60% 23%;
    mask-image: linear-gradient(90deg, transparent, #000 49%);
    opacity: 0.78;
  }
  .hero h2 {
    font-size: 2.17rem;
    margin: 20px 0 13px;
  }
  .hero p {
    font-size: 0.88rem;
  }
  .hero .actions {
    margin-top: 21px;
    gap: 7px;
  }
  .primary,
  .secondary {
    padding: 10px 13px;
  }
  .overview,
  .reward-hero {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .card {
    padding: 20px;
    border-radius: 12px;
  }
  main {
    padding: 25px 16px 105px;
  }
  .overview {
    margin-top: 13px;
  }
  .nav-inner a {
    flex-direction: column;
    gap: 4px;
    font-size: 0.69rem;
    letter-spacing: 0.08em;
    min-height: 62px;
  }
  .nav-inner a svg {
    width: 19px;
  }
  .nav-inner a[aria-current]:before {
    width: 36px;
  }
  .mobile-only {
    display: block;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .filters {
    gap: 8px;
  }
  .seg button {
    padding-inline: 10px;
  }
  .range {
    gap: 4px;
    font-size: 0.86rem;
  }
  .collection {
    grid-template-columns: 1fr;
  }
  .product-art.large {
    height: 195px;
  }
  .reward-hero h2 {
    margin: 12px 0;
  }
  .weekly-title {
    margin-top: 13px;
  }
  .week-strip {
    margin-top: 10px;
  }
  .goal-mini {
    margin: 13px 0;
  }
  .date svg {
    width: 14px;
  }
  .row {
    gap: 7px;
  }
  .actions .text-btn {
    padding: 6px;
  }
  .reward-hero .large .phone {
    transform: rotate(13deg) scale(3);
  }
}
@media (max-width: 435px) {
  .hero-content {
    width: 100%;
    padding-right: 16px;
  }
  .hero-content > p,
  .hero h2,
  .mission-details {
    max-width: 78%;
  }
  .sculpture {
    inset: 0 -25% 0 37%;
    background-size: auto 66%;
    background-position: 55% 23%;
    opacity: 0.65;
  }
  .headline .date {
    display: none;
  }
  .hero {
    min-height: 280px;
  }
  .hero .actions {
    position: relative;
  }
  .mode svg {
    display: none;
  }
  .mode {
    font-size: 0.75rem;
  }
  .headline > .secondary,
  .headline > .primary {
    margin-top: 5px;
  }
  .hero:has(.mission-details) .sculpture {
    opacity: 0.32;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 721px) {
  .sculpture {
    background-size: auto 116%;
    background-position: center;
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 22%,
      #000 92%,
      transparent
    );
  }
}
@media (max-width: 720px) {
  .sculpture {
    mask-image: radial-gradient(
      ellipse at 66% 39%,
      #000 18%,
      #000b 46%,
      transparent 72%
    );
  }
}
