/* Sunlight interactive prototype. Built from the Figma frames at 414 × 896 and scaled to fit the frame it sits in */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #e9e9e7; -webkit-tap-highlight-color: transparent; }
html:has(.embed), .embed { background: #E9F0F5; }
body { display: grid; place-items: center; font-family: 'Poppins', system-ui, sans-serif; }
button, input { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; outline: 0; }
button { cursor: pointer; text-align: inherit; }
img { display: block; max-width: none; }
p { margin: 0; }

.stage { position: relative; overflow: hidden; }
.app {
  --bg: #E9F0F5; --card: #fff; --head: #fff; --tx: #485367; --tx2: #455A72; --field: #F8F8F8; --muted: rgb(72 83 103 / .5); --shadow: #D6E1E4;
  position: absolute; left: 0; top: 0; width: 414px; height: 896px; overflow: hidden; background: var(--bg); color: var(--tx); transform-origin: 0 0; border-radius: 20px; user-select: none; -webkit-user-select: none;
  transition: background 300ms;
}
.app.dk { --bg: #272C31; --card: #2F3943; --head: #293138; --tx: #fff; --tx2: #fff; --field: #272C31; --muted: rgb(255 255 255 / .5); --shadow: #1E2327; }
.embed .app { border-radius: 0; }
.sb { position: absolute; left: 0; top: 0; width: 414px; height: 33px; z-index: 30; pointer-events: none; transition: filter 300ms; }
.sb .t { position: absolute; left: 27.4px; top: 17.2px; }
.sb .r { position: absolute; right: 15.2px; top: 21.3px; }
.app.dk .sb, .app.blue .sb { filter: invert(1); }
/* Monochrome glyphs go light in the dark theme, white tiles go dark */
.app.dk .g { filter: brightness(0) invert(1); }
.app.dk .g.soft { filter: brightness(0) invert(.62); }
.app.dk .tabs .g.soft { filter: invert(.82) hue-rotate(180deg); }
.app.dk .tl { filter: invert(.86) hue-rotate(180deg) brightness(1.15); }

/* Screens */
.scr { position: absolute; inset: 0; background: var(--bg); overflow: hidden; transition: background 300ms; }
.scr.in-r { animation: in-r 260ms cubic-bezier(.2, .8, .2, 1) both; }
.scr.in-l { animation: in-l 260ms cubic-bezier(.2, .8, .2, 1) both; }
.scr.in-f { animation: in-f 160ms ease-out both; }
.scr.out-l { animation: out-l 260ms cubic-bezier(.2, .8, .2, 1) both; pointer-events: none; }
.scr.out-r { animation: out-r 260ms cubic-bezier(.2, .8, .2, 1) both; pointer-events: none; z-index: 2; }
.scr.out-f { animation: out-f 140ms ease-in both; pointer-events: none; }
@keyframes in-r { from { transform: translateX(100%); } }
@keyframes in-l { from { transform: translateX(-28%); } }
@keyframes in-f { from { opacity: 0; } }
@keyframes out-l { to { transform: translateX(-28%); } }
@keyframes out-r { to { transform: translateX(100%); } }
@keyframes out-f { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Loading */
.loading { background: linear-gradient(180deg, #5FD8F9, #9EEBEF); display: grid; place-items: center; }
.loading .logo { margin-top: 30px; animation: pop 520ms cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes pop { from { transform: scale(.7) translateY(30px); opacity: 0; } }

/* Page scaffold: header card, a body, the tab bar */
.page { position: absolute; inset: 0; display: flex; flex-direction: column; }
.head { flex: none; position: relative; z-index: 4; background: var(--head); border-radius: 0 0 30px 30px; padding: 60px 20px 10px; display: flex; flex-direction: column; gap: 20px; transition: background 300ms; }
.blue .head { background: transparent; color: #fff; }
.who { display: flex; align-items: center; gap: 20px; }
.who > img { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; transform: scaleX(-1); }
.who div { flex: 1; display: flex; flex-direction: column; white-space: nowrap; }
.who small { font-size: 14px; font-weight: 500; }
.who b { font-size: 26.5px; font-weight: 700; line-height: 1.3; }
.menu { width: 60px; height: 60px; position: relative; flex: none; transition: scale 160ms; }
.menu img { position: absolute; left: -2px; top: 0; }
.menu:active { scale: .94; }
.say { display: flex; align-items: center; gap: 10px; height: 60px; padding: 10px 20px 10px 10px; border-radius: 18px; background: var(--field); transition: background 300ms; }
.say img.av { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.say input { flex: 1; min-width: 0; font-size: 12.5px; color: var(--tx); }
.say input::placeholder { color: #96ADC8; }
.say button { padding: 6px; margin: -6px; border-radius: 10px; }
.say button:active { background: rgb(150 173 200 / .15); }
.grab { display: flex; justify-content: center; padding: 6px 0 0; margin: -6px 0 0; cursor: grab; touch-action: none; }
.grab::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--tx2); opacity: .9; }
.blue .grab::before { background: #fff; }
.app.dk .grab::before { opacity: .35; }

/* Pull-down panel: ray rewards and the help box */
.drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms cubic-bezier(.2, .9, .2, 1), margin 300ms cubic-bezier(.2, .9, .2, 1); margin-top: -20px; }
.head.open .drawer { grid-template-rows: 1fr; margin-top: 0; }
.drawer > div { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 20px; }
.rw { display: flex; gap: 20px; align-items: center; }
.rw .tile { width: 80px; height: 80px; border-radius: 22px; background: #2ABAE0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 16px; font-weight: 600; flex: none; }
.rw .side { display: flex; flex-direction: column; gap: 10px; }
.rw .side > span { font-size: 16px; font-weight: 500; }
.rw .thumbs { display: flex; gap: 10px; }
.rw .thumbs img, .rw .thumbs b { width: 45px; height: 45px; border-radius: 14px; object-fit: cover; }
.rw .thumbs b { display: grid; place-items: center; background: var(--card); border: 1px solid rgb(150 173 200 / .3); font-size: 14px; font-weight: 500; }
.store { height: 54px; border-radius: 18px; background: #2ABAE0; color: #fff; font-size: 14px; font-weight: 500; text-align: center; transition: scale 160ms; }
.store:active, .cta:active { scale: .97; }
.help { border-radius: 28px; background: #FFF0F7; border: 1px dashed #DFC6C6; padding: 25px 10px 10px; display: flex; flex-direction: column; gap: 10px; }
.app.dk .help { background: #3A3340; border-color: #6B5560; }
.help h3 { margin: 0 0 10px; text-align: center; font-size: 16px; font-weight: 500; color: #F81546; }
.help button { display: flex; align-items: center; height: 54px; padding: 0 20px 0 30px; border-radius: 16px; background: var(--card); font-size: 14px; font-weight: 500; color: var(--tx2); }
.help button span { flex: 1; text-align: center; padding-left: 20px; }
.help button:active { scale: .98; }
.dim { position: absolute; inset: 0; z-index: 3; background: rgb(39 44 49 / .0); pointer-events: none; transition: background 300ms; }
.head.open + .dim { background: rgb(39 44 49 / .25); pointer-events: auto; }

.body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.body::-webkit-scrollbar { display: none; }
.bar { flex: none; display: flex; align-items: center; gap: 20px; padding: 20px; }
.bar .bk { width: 40px; height: 40px; margin: 0 -10px 0 -10px; display: grid; place-items: center; border-radius: 12px; }
.bar .bk:active, .bar .ib:active { background: rgb(150 173 200 / .15); }
.bar h1 { flex: 1; margin: 0; font-size: 16px; font-weight: 500; white-space: nowrap; }
.bar .tr { display: flex; gap: 16px; align-items: center; }
.bar .ib { width: 32px; height: 32px; margin: -4px; display: grid; place-items: center; border-radius: 10px; }
.blue .bar h1 { color: #fff; }
.h2 { font-size: 16px; font-weight: 500; margin: 10px 0 0; display: flex; align-items: center; justify-content: space-between; }
.search { display: flex; gap: 10px; flex: none; }
.search label { flex: 1; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 20px; border-radius: 18px; background: var(--card); transition: background 300ms; }
.search input { flex: 1; min-width: 0; font-size: 12.5px; color: var(--tx); }
.search input::placeholder { color: #96ADC8; }
.search > button:active { scale: .94; }

.page:has(+ .tabs) { padding-bottom: 91px; }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 91px; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 30px; background: var(--head); filter: drop-shadow(0 2px 20px var(--shadow)); transition: background 300ms; }
.tabs button { width: 31px; height: 31px; display: grid; place-items: center; position: relative; }
.tabs button img { pointer-events: none; }
.tabs button::after { content: ""; position: absolute; inset: -12px; border-radius: 14px; }
.tabs button:active::after { background: rgb(150 173 200 / .15); }

/* Home */
.acts { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; flex: none; }
.acts::-webkit-scrollbar { display: none; }
.act { position: relative; flex: none; width: 160px; height: 200px; border-radius: 32px; color: #fff; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 20px; font-size: 14px; font-weight: 700; transition: scale 160ms; }
.act:active { scale: .96; }
.act .sp { position: absolute; left: 20px; top: 20px; }
.act .ill { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); }
.pager { display: flex; gap: 8px; }
.pager i { width: 8px; height: 8px; border-radius: 50%; background: #96ADC8; opacity: .2; transition: opacity 200ms, background 200ms; }
.pager i.on { background: var(--tx2); opacity: 1; }
.row { display: flex; align-items: center; gap: 20px; padding: 15px; border-radius: 28px; background: var(--card); text-align: left; flex: none; transition: background 300ms, scale 160ms; }
.row:active { scale: .98; }
.row > img:first-child { flex: none; }
.row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row b { font-size: 14px; font-weight: 500; white-space: nowrap; }
.row small { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Mood check-in */
.modal { position: absolute; inset: 0; z-index: 20; }
.modal .veil { position: absolute; inset: 0; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgb(233 240 245 / .3); animation: in-f 200ms both; }
.modal.out .veil { animation: out-f 200ms both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 32px 32px 20px 20px; background: #2ABAE0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 40px; padding-top: 40px; box-shadow: 0 -10px 40px rgb(5 5 5 / .3); animation: up 380ms cubic-bezier(.2, 1, .3, 1) both; }
.modal.out .sheet { animation: down 240ms cubic-bezier(.5, 0, .7, .4) both; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
.mood { height: 415px; }
.mood h2 { margin: 0; width: 330px; text-align: center; font-size: 26.5px; font-weight: 700; line-height: 1.45; }
.suns { position: relative; width: 381px; height: 116px; flex: none; touch-action: none; cursor: grab; outline: 0; }
.suns.drag { cursor: grabbing; }
.suns .bg { position: absolute; left: 0; top: 0; }
.suns button { position: absolute; top: 31px; width: 50px; height: 48px; margin-left: -25px; transition: left 300ms cubic-bezier(.3, 1.3, .4, 1), transform 300ms cubic-bezier(.3, 1.4, .4, 1), opacity 200ms; }
.suns.drag button { transition: left 120ms ease-out, transform 260ms cubic-bezier(.3, 1.4, .4, 1), opacity 160ms; }
.suns button img { width: 100%; height: 100%; pointer-events: none; }
.suns button.on { transform: scale(1.64); z-index: 1; }
.suns button:not(.on):hover { transform: scale(1.08); }
.suns button.on img { animation: spin 9s linear infinite; }
.suns:focus-visible .bg { filter: drop-shadow(0 0 0 2px #fff); }
.feel { margin-top: -26px; font-size: 14px; font-weight: 600; height: 21px; opacity: .9; }
.pill { position: absolute; left: 20px; bottom: 20px; width: 374px; display: flex; align-items: center; gap: 20px; padding: 10px 30px 10px 10px; border-radius: 22px; background: #49CEF2; color: #fff; touch-action: none; overflow: hidden; font-family: 'Outfit', 'Poppins', sans-serif; font-size: 16px; font-weight: 700; }
.pill .knob { position: relative; z-index: 2; width: 60px; height: 60px; flex: none; transition: transform 320ms cubic-bezier(.3, 1.3, .5, 1); }
.pill .tx { flex: 1; white-space: nowrap; transition: opacity 200ms; }
.pill .chev path { animation: chev 1.4s infinite; }
.pill .chev path:nth-child(2) { animation-delay: .15s; }
.pill .chev path:nth-child(3) { animation-delay: .3s; }
@keyframes chev { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
.pill .trail { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 22px; background: rgb(255 255 255 / .18); pointer-events: none; }

/* Messages and chat */
.chats { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.chat-row { display: flex; align-items: center; gap: 17px; padding: 10px 0; text-align: left; border-radius: 18px; }
.chat-row:active { background: rgb(150 173 200 / .12); }
.chat-row img.av { width: 60px; height: 60px; border-radius: 18px; object-fit: cover; flex: none; }
.chat-row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-row b { font-size: 16px; font-weight: 500; color: var(--tx2); }
.chat-row small { font-size: 14px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row.read small { opacity: .6; }
.chat-row .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 12.5px; color: var(--muted); width: 40px; }
.chat-row .meta img { visibility: hidden; }
.chat-row.new .meta img { visibility: visible; }
.chat-row .meta span { order: 2; }
.thread { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.thread::-webkit-scrollbar { display: none; }
.thread .sp { flex: 1; }
.msg { display: flex; align-items: flex-end; gap: 10px; animation: rise 220ms both; }
.msg img.av { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; }
.msg .bub { max-width: 280px; padding: 10px 16px; border-radius: 16px; background: var(--card); font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--tx2); transition: background 300ms; }
.msg.me { justify-content: flex-end; }
.msg.me .bub { background: #A3B7CF; color: #fff; }
.msg .bub.bold { font-weight: 700; }
.msg .link { width: 326px; border-radius: 16px; overflow: hidden; background: var(--card); }
.msg .link img { width: 326px; height: 151px; object-fit: cover; }
.msg .link div { padding: 10px 16px; display: flex; flex-direction: column; }
.msg .link b { font-size: 14px; font-weight: 500; color: var(--tx2); }
.msg .link small { font-size: 12.5px; color: var(--tx2); }
.typing { display: flex; gap: 4px; padding: 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #A3B7CF; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); } }
.compose { flex: none; height: 91px; padding: 15px 20px; background: var(--head); border-radius: 0; transition: background 300ms; }
.compose form { display: flex; align-items: center; gap: 15px; height: 60px; padding: 0 20px; border-radius: 18px; background: var(--field); margin: 0; }
.compose input { flex: 1; min-width: 0; font-size: 12.5px; color: var(--tx); }
.compose input::placeholder { color: #96ADC8; }
.compose button { padding: 6px; margin: -6px; border-radius: 10px; }

/* Calendar */
.cal { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; flex: none; }
.cal .mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal .mh b { font-size: 16px; font-weight: 500; }
.cal .mh button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; margin: -6px; }
.cal .mh button:active { background: rgb(150 173 200 / .15); }
.cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; justify-items: center; }
.cal .wd { font-size: 12.5px; color: var(--muted); height: 30px; display: grid; place-items: center; }
.cal .d { width: 45px; height: 45px; border-radius: 16px; display: grid; place-items: center; font-size: 14px; transition: background 200ms, color 200ms; }
.cal .d.x { opacity: .3; }
.cal .d.ev { color: #2ABAE0; font-weight: 700; }
.cal .d.on { background: #445A72; color: #fff; font-weight: 700; }
.cal .d:not(.x):not(.on):active { background: rgb(150 173 200 / .2); }
.event { margin-top: 14px; width: 100%; }
.event b { font-size: 16px; }
.event.none { opacity: .7; }

/* Resources */
.res { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; flex: none; }
.res button { display: flex; flex-direction: column; gap: 4px; text-align: left; transition: scale 160ms; }
.res button:active { scale: .97; }
.res img { width: 178px; height: 100px; border-radius: 10px; object-fit: cover; margin-bottom: 8px; }
.res b { font-size: 14px; font-weight: 500; }
.res small { font-size: 12.5px; color: var(--muted); }

/* Check-ups and the quiz */
.ck { width: 60px; height: 60px; border-radius: 22px; background: #2ABAE0; color: #fff; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 14px; }
.ck.spin img { animation: spin 2.4s linear infinite; }
.steps { display: flex; gap: 8px; padding: 0 20px; flex: none; }
.steps i { flex: 1; height: 10px; border-radius: 5px; background: #A3B7CF; transition: background 300ms; }
.steps i.on { background: #2ABAE0; }
.quiz { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 50px 20px 20px; text-align: center; }
.quiz h2 { margin: 0; font-size: 26.5px; font-weight: 700; animation: rise 240ms both; }
.quiz p { margin: 16px 0 0; width: 300px; font-size: 14px; line-height: 1.7; color: var(--tx2); animation: rise 240ms 40ms both; }
.quiz .big { flex: 1; display: grid; place-items: center; font-size: 88px; font-weight: 700; color: var(--tx2); }
.quiz .big span { display: inline-block; animation: pop2 260ms cubic-bezier(.3, 1.5, .5, 1) both; }
.quiz .big span.none { opacity: .2; }
@keyframes pop2 { from { transform: scale(.6); opacity: 0; } }
.pick { display: flex; justify-content: space-between; width: 100%; gap: 8px; padding: 20px; border-radius: 28px; background: var(--card); transition: background 300ms; }
.pick button { width: 60px; height: 60px; border-radius: 22px; background: #A3B7CF; color: #fff; font-size: 26.5px; font-weight: 700; text-align: center; transition: background 200ms, scale 160ms; }
.pick button.on { background: #2ABAE0; }
.pick button:active { scale: .92; }
.cta { flex: none; margin: 20px 20px 20px; height: 54px; border-radius: 18px; background: #2ABAE0; color: #fff; font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; position: relative; transition: scale 160ms, opacity 200ms; }
.cta img { position: absolute; right: 22px; transform: rotate(90deg); }
.cta[disabled] { opacity: .5; pointer-events: none; }

/* Rewards */
.blue.scr { background: #2ABAE0; }
.blue .rays { position: absolute; left: -243px; top: -10px; width: 900px; height: 900px; opacity: .55; pointer-events: none; animation: turn 80s linear infinite; }
@keyframes turn { to { rotate: 360deg; } }
.blue .page { z-index: 1; }
.orb { align-self: center; width: 182px; height: 182px; border-radius: 50%; background: #55D8FB; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; margin: 0 0 20px; box-shadow: 0 0 0 0 rgb(85 216 251 / .4); }
.orb b { font-size: 35px; font-weight: 600; line-height: 1; margin-top: 8px; }
.orb small { font-size: 12px; font-weight: 700; }
.orb.bump { animation: bump 380ms cubic-bezier(.3, 1.5, .5, 1); }
@keyframes bump { 40% { transform: scale(1.06); } }
.podium { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 10px; height: 180px; padding-bottom: 20px; border-radius: 32px; background: var(--card); flex: none; margin-top: 30px; transition: background 300ms; }
.podium div { display: flex; flex-direction: column; align-items: center; width: 100px; text-align: center; }
.podium img { width: 80px; height: 80px; border-radius: 22px; object-fit: cover; border: 10px solid var(--card); box-sizing: content-box; border-radius: 32px; margin-bottom: -4px; }
.podium .first { transform: translateY(-30px); }
.podium b { font-size: 16px; font-weight: 500; }
.podium small { font-size: 11px; font-weight: 700; }
.item .tl2 { width: 60px; height: 60px; border-radius: 18px; object-fit: cover; flex: none; }

/* Milestones */
.feed { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.feed::-webkit-scrollbar { display: none; }
.post { background: var(--card); margin-bottom: 10px; transition: background 300ms; }
.post .ph { display: flex; align-items: center; gap: 10px; padding: 10px 20px; }
.post .ph img.av { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.post .ph b { flex: 1; font-size: 16px; font-weight: 500; }
.post .ph small { font-size: 12.5px; color: var(--muted); }
.post .ph button { padding: 10px 6px; margin: -10px -6px -10px 4px; }
.post .pic { position: relative; height: 324px; }
.post .pic > img { width: 414px; height: 324px; object-fit: cover; }
.post .likes { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: rgb(255 255 255 / .75); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 600; color: #485367; }
.post .likes button { width: 25px; height: 25px; transition: scale 200ms; }
.post .likes button.on { animation: like 300ms cubic-bezier(.3, 1.6, .5, 1); }
.post .likes button.on img { filter: invert(56%) sepia(80%) saturate(500%) hue-rotate(160deg); }
@keyframes like { 40% { scale: 1.35; } }
.post .cm { display: block; padding: 12px 20px 16px; font-size: 12.5px; font-weight: 500; color: #2ABAE0; }
.post .cap { padding: 12px 20px 0; font-size: 14px; color: var(--tx2); }
.post .heart { position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px; border-radius: 50%; background: rgb(255 255 255 / .85); display: grid; place-items: center; animation: heart 520ms ease both; pointer-events: none; }
@keyframes heart { 0% { scale: .3; opacity: 0; } 30% { scale: 1.1; opacity: 1; } 70% { scale: 1; opacity: 1; } 100% { scale: 1.2; opacity: 0; } }

/* Challenges */
.grp { font-size: 16px; font-weight: 600; margin: 4px 0 6px; }
.chal { position: relative; display: flex; align-items: center; gap: 20px; height: 90px; padding: 0 15px; border-radius: 28px; overflow: hidden; text-align: left; flex: none;
  background: var(--card) repeating-linear-gradient(-45deg, rgb(233 233 233 / .5) 0 1px, transparent 1px 7px); transition: scale 160ms, box-shadow 300ms; }
.app.dk .chal { background: var(--card) repeating-linear-gradient(-45deg, rgb(255 255 255 / .06) 0 1px, transparent 1px 7px); }
.chal:active { scale: .98; }
.chal .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 28px 0 0 28px; border-right: 2px solid #fff; transition: width 520ms cubic-bezier(.2, .9, .2, 1), border-radius 200ms; }
.chal.done .fill { border-radius: 28px; border-right-color: transparent; }
.chal.due { box-shadow: inset 0 0 0 1px #FBBCBC, 0 0 10px rgb(255 96 96 / .3); }
.chal.done.due { box-shadow: none; }
.chal .ck { position: relative; }
.chal .tx { position: relative; display: flex; flex-direction: column; gap: 4px; color: #485367; }
.chal b { font-size: 14px; font-weight: 500; }
.chal small { font-size: 14px; opacity: .5; }
.chal .ok { position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; scale: 0; transition: scale 300ms 360ms cubic-bezier(.3, 1.7, .5, 1); }
.chal.done .ok { scale: 1; }
.done-sheet { height: 633px; gap: 40px; overflow: hidden; }
.done-sheet .top { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.done-sheet .top b { font-size: 35px; font-weight: 600; line-height: 30px; }
.done-sheet .top small { font-size: 12px; font-weight: 700; margin-top: -10px; }
.done-sheet h2 { margin: 0; font-size: 26.5px; font-weight: 700; }
.done-sheet p { margin: 10px 0 0; width: 293px; text-align: center; font-size: 14px; font-weight: 500; line-height: 24px; }
.done-sheet .hands { position: absolute; left: 0; top: 368px; animation: drift 24s linear infinite alternate; }
@keyframes drift { to { transform: translateX(-667px); } }
.done-sheet .rays-in { animation: pop 700ms 200ms cubic-bezier(.3, 1.4, .5, 1) both; }

/* Account */
.set { display: flex; flex-direction: column; gap: 1px; flex: none; }
.set > * { display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 20px 0 15px; background: var(--card); color: var(--tx2); text-align: left; transition: background 300ms; }
.set > :first-child { border-radius: 18px 18px 0 0; font-size: 14px; font-weight: 700; }
.set > :last-child { border-radius: 0 0 18px 18px; }
.set button span:first-child { flex: 1; font-size: 14px; font-weight: 500; }
.set button span:nth-child(2) { font-size: 14px; font-weight: 500; opacity: .5; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set button:active { background: rgb(150 173 200 / .12); }
.theme { position: relative; width: 80px; height: 40px; border-radius: 50px; background: #F9F9F9; display: flex; padding: 2px; transition: background 300ms; }
.app.dk .theme { background: #2F3943; }
.theme::before { content: ""; position: absolute; left: 2px; top: 2px; width: 36px; height: 36px; border-radius: 50%; background: #2ABAE0; transition: transform 260ms cubic-bezier(.3, 1.4, .5, 1); }
.app.dk .theme::before { transform: translateX(40px); }
.theme svg { position: relative; width: 36px; height: 36px; }
.theme .sun { color: #fff; }
.theme .moon { color: #485367; }
.app.dk .theme .sun { color: #fff; }
.app.dk .theme .moon { color: #fff; }

.toast { position: absolute; left: 50%; top: 48px; z-index: 40; max-width: 360px; padding: 12px 18px; border-radius: 16px; background: #445A72; color: #fff; font-size: 12.5px; font-weight: 500; text-align: center; transform: translateX(-50%); animation: toast 2.6s ease both; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -12px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@media (prefers-reduced-motion: reduce) {
  .scr.in-r, .scr.in-l, .scr.out-l, .scr.out-r { animation-duration: 1ms; }
  .blue .rays, .done-sheet .hands, .suns button.on img, .ck.spin img, .pill .chev path { animation: none !important; }
}
.set .box { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid #A3B7CF; display: grid; place-items: center; transition: background 200ms, border-color 200ms; }
.set button.on .box { background: #2ABAE0; border-color: #2ABAE0; animation: pop2 300ms cubic-bezier(.3, 1.5, .5, 1); }
.set button.on span:first-child { text-decoration: line-through; opacity: .6; }
.help button img, .set button img { transform: rotate(90deg); }

/* Rewards scrolls as one page so the orb slides off the top of the phone; other lists fade at the top once scrolled */
.body.whole { padding: 0 0 20px; gap: 0; }
.body.whole > .head { flex: none; }
.body.whole > .bar { flex: none; }
.body.whole > .inner { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; }
.body.scrolled, .feed.scrolled, .thread.scrolled { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px); mask-image: linear-gradient(to bottom, transparent 0, #000 28px); }
.body.whole.scrolled { -webkit-mask-image: none; mask-image: none; }
