/* Bloom 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: #F4F4F3; }
body { display: grid; place-items: center; font-family: 'Outfit', system-ui, sans-serif; color: #424040; }
button, input, textarea { 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 { position: absolute; left: 0; top: 0; width: 414px; height: 896px; overflow: hidden; background: #F6F6F5; transform-origin: 0 0; border-radius: 20px; user-select: none; -webkit-user-select: none; }
.embed .app { border-radius: 0; }
.sb { position: absolute; left: 0; top: 0; width: 414px; height: 33px; z-index: 40; 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.photo .sb { filter: invert(1); }

/* The soft leaf shadow behind everything, drifting a little like leaves in a breeze */
.bgl { position: absolute; left: -58px; top: -24px; width: 530px; height: 944px; overflow: hidden; filter: blur(5px); pointer-events: none; }
.bgl img { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; animation: breeze 14s ease-in-out infinite alternate; transform-origin: 70% 10%; }
.bgl::after { content: ""; position: absolute; inset: 0; background: rgb(255 255 255 / .4); }
@keyframes breeze { 0% { transform: rotate(-1.2deg) translate(-4px, 0); } 100% { transform: rotate(1.4deg) translate(6px, 4px); } }

/* Screens */
.scr { position: absolute; inset: 0; z-index: 2; }
.scr.in-r { animation: in-r 300ms cubic-bezier(.2, .8, .2, 1) both; }
.scr.in-l { animation: in-l 300ms cubic-bezier(.2, .8, .2, 1) both; }
.scr.in-f { animation: in-f 220ms ease-out both; }
.scr.out-l { animation: out-l 300ms cubic-bezier(.2, .8, .2, 1) both; pointer-events: none; }
.scr.out-r { animation: out-r 300ms cubic-bezier(.2, .8, .2, 1) both; pointer-events: none; z-index: 3; }
.scr.out-f { animation: out-f 160ms ease-in both; pointer-events: none; }
@keyframes in-r { from { transform: translateX(40%); opacity: 0; } }
@keyframes in-l { from { transform: translateX(-20%); opacity: 0; } }
@keyframes in-f { from { opacity: 0; } }
@keyframes out-l { to { transform: translateX(-20%); opacity: 0; } }
@keyframes out-r { to { transform: translateX(40%); opacity: 0; } }
@keyframes out-f { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* Loading */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 150px; gap: 70px; }
.loading .logo { animation: logo 1.4s cubic-bezier(.3, 1.2, .4, 1) both; }
.loading b { font-size: 37px; font-weight: 200; letter-spacing: .02em; animation: rise 700ms 300ms both; }
@keyframes logo { from { opacity: 0; transform: scale(.7) rotate(-8deg); filter: blur(6px); } }

/* Header: icon tile and two lines */
.hd { position: absolute; left: 20px; right: 20px; top: 70px; display: flex; align-items: center; gap: 24px; font-size: 16px; }
.hd div { display: flex; flex-direction: column; }
.hd span { font-weight: 200; }
.hd b { font-weight: 400; }
.hd b strong { font-weight: 700; transition: opacity 200ms; }
.hi { position: relative; width: 50px; height: 50px; flex: none; border-radius: 18px; transition: scale 160ms; }
.hi img { position: absolute; left: -3px; top: -2px; }
.hi:active { scale: .93; }
.tile { width: 50px; height: 50px; border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgb(162 161 161 / .25); display: grid; place-items: center; }

/* Section title: label plus an underlined word you can tap */
.st { position: absolute; left: 20px; right: 20px; display: flex; align-items: center; gap: 15px; font-size: 19.5px; }
.st button { font-size: 21px; font-weight: 700; padding: 3px 0 5px; border-bottom: 3px solid #424040; }
.st button:active { opacity: .6; }

/* Tab bar */
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; padding: 10px 20px 20px; display: flex; justify-content: space-between; z-index: 6; }
.tabs.solid { background: #F3F3F3; }
.tabs button { width: 60px; height: 60px; border-radius: 18px; background: #fff; display: grid; place-items: center; opacity: .3; transition: opacity 200ms, box-shadow 200ms, scale 160ms; }
.tabs button.on { opacity: 1; box-shadow: 0 1px 3px rgb(162 161 161 / .25); }
.tabs button:active { scale: .93; }

/* Glass card */
.glass { background: rgb(255 255 255 / .6); border-radius: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* The lotus on its plate. It stays on screen between tabs, so it keeps growing and moving */
.lotus { position: absolute; left: 104px; top: 625px; width: 206px; height: 173px; z-index: 7; transition: top 450ms cubic-bezier(.3, .9, .3, 1), opacity 300ms, transform 300ms; touch-action: none; cursor: pointer; }
.lotus.off { opacity: 0; pointer-events: none; transform: translateY(30px) scale(.9); }
.lotus .plate { position: absolute; left: 0; top: 76px; width: 206px; height: 97px; overflow: visible; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .08)); }
.lotus .plate .arc { transition: none; }
.lotus .glow { position: absolute; left: 50%; top: 52px; width: 150px; height: 110px; margin-left: -75px; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 182 206 / .55), rgb(255 182 206 / 0)); animation: glow 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 50% { transform: scale(1.18); opacity: .6; } }
.lotus .fbox { position: absolute; left: 9px; top: 15px; width: 190px; height: 150.72px; transform-origin: 50% 80%; animation: sway 5.5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.6deg) scale(1); } 50% { transform: rotate(1.6deg) scale(1.025); } }
.lotus .fl { position: absolute; transition: opacity 600ms ease, transform 700ms cubic-bezier(.3, 1.5, .5, 1); }
.lotus .fl.hide { opacity: 0; transform: scale(.82) translateY(6px); }
.lotus .fl i { position: absolute; background: center / 100% 100% no-repeat; }
.lotus .fl .petals { animation: breathe 3.2s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, .985); } }
.lotus.pop .fbox { animation: bloom 700ms cubic-bezier(.3, 1.6, .5, 1), sway 5.5s ease-in-out 700ms infinite; }
@keyframes bloom { 0% { transform: scale(.86); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.lotus.wiggle .fbox { animation: wiggle 600ms ease, sway 5.5s ease-in-out 600ms infinite; }
@keyframes wiggle { 20% { transform: rotate(-5deg); } 45% { transform: rotate(4deg); } 70% { transform: rotate(-2deg); } }
/* Sprites drifting up and around the flower */
.lotus .sp { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); opacity: 0; pointer-events: none; animation: drift var(--d) ease-in-out var(--w) infinite; box-shadow: 0 0 6px var(--c); }
.lotus .sp.petal { border-radius: 80% 0 80% 0; box-shadow: none; }
@keyframes drift { 0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.6); } 15% { opacity: .95; } 70% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); } }
.lotus .burst { position: absolute; left: 103px; top: 80px; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #FF9EBB; pointer-events: none; }
.lotus .hint { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; font-size: 12px; font-weight: 300; white-space: nowrap; opacity: 0; transition: opacity 300ms; }
.lotus.smiling .glow { animation-duration: 1.2s; }
.lotus.smiling .plate { filter: drop-shadow(0 8px 18px rgb(255 120 160 / .25)); }

/* Dashboard */
.quote { position: absolute; left: 30px; top: 190px; width: 345px; margin: 0; font-size: 42px; font-weight: 100; line-height: 1.26; }
.quote span { display: inline-block; animation: rise 700ms both; }
.stack { position: absolute; left: 20px; right: 20px; top: 480px; height: 166px; }
.stack i { position: absolute; height: 5px; border-radius: 10px 10px 0 0; background: #424040; }
.stack .glass { position: absolute; left: 0; right: 0; top: 20px; padding: 20px; display: flex; flex-direction: column; gap: 18px; text-align: left; border-radius: 20px; background: rgb(255 255 255 / .5); transition: scale 160ms; }
.stack .glass:active { scale: .98; }
.stack .row1 { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 200; }
.stack .row1 img { animation: sunpulse 3s ease-in-out infinite; }
@keyframes sunpulse { 50% { transform: rotate(8deg) scale(1.06); } }
.stack p { font-size: 19.5px; line-height: 1.3; }

/* Mood bubbles */
.mood h1 { position: absolute; left: 30px; top: 140px; margin: 0; font-size: 42px; font-weight: 100; line-height: 1.26; }
.bubbles { position: absolute; left: 20px; top: 300px; width: 374px; height: 500px; }
.bubbles button { position: absolute; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 400; animation: float var(--d) ease-in-out var(--w) infinite alternate; transition: scale 300ms cubic-bezier(.3, 1.5, .5, 1), filter 200ms; }
.bubbles button:hover { filter: brightness(1.03); }
.bubbles button:active { scale: .94; }
.bubbles button.pick { scale: 1.15; z-index: 2; }
.bubbles.picked button:not(.pick) { opacity: .25; scale: .85; transition: opacity 300ms, scale 300ms; }
@keyframes float { to { transform: translate(var(--fx), var(--fy)); } }
.different { position: absolute; left: 20px; right: 20px; top: 823px; height: 53px; border-radius: 12px; background: rgb(222 222 222 / .8); font-size: 16px; text-align: center; }

/* Playlists */
.lists { position: absolute; left: 20px; right: 20px; top: 210px; height: 476px; overflow-y: auto; scrollbar-width: none; display: grid; grid-template-columns: 173px 1fr; gap: 15px; align-items: start; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); padding-bottom: 80px; }
.lists::-webkit-scrollbar { display: none; }
.lists .col { display: flex; flex-direction: column; gap: 15px; }
.pl { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 20px 24px; text-align: left; border-radius: 16px; background: rgb(255 255 255 / .6); transition: scale 160ms, background 200ms; animation: rise 400ms both; }
.pl.grey { background: rgb(238 237 237 / .6); }
.pl:active { scale: .97; }
.pl b { font-size: 16px; font-weight: 400; }
.pl small { font-size: 12.5px; }
.pl img { position: absolute; right: 18px; top: 18px; }

/* Player and guided cards */
.card { position: absolute; left: 20px; width: 374px; height: 490px; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; gap: 20px; touch-action: none; }
.card > img.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out, filter 500ms; }
.card.play > img.ph { transform: scale(1.06); }
.card .dim { position: absolute; inset: 0; background: rgb(0 0 0 / .6); transition: opacity 500ms; pointer-events: none; }
.card.play .dim { opacity: 0; }
.tabsdeco { position: absolute; left: 20px; width: 374px; height: 20px; }
.tabsdeco i { position: absolute; height: 4.83px; border-radius: 10px 10px 0 0; background: #424040; }
.smile2play { position: absolute; left: 50%; top: 45%; translate: -50% -50%; padding: 20px; border-radius: 20px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 21px; font-weight: 500; white-space: nowrap; transition: opacity 300ms, scale 300ms cubic-bezier(.3, 1.4, .5, 1); }
.smile2play img { animation: grin 1.8s ease-in-out infinite; }
@keyframes grin { 50% { transform: scaleY(1.5) scaleX(1.06); } }
.card.play .smile2play { opacity: 0; scale: .8; pointer-events: none; }
.info { position: relative; background: #fff; border-radius: 20px; padding: 10px 20px; display: flex; flex-direction: column; gap: 10px; }
.info .top { display: flex; align-items: center; gap: 20px; }
.info .top div { display: flex; flex-direction: column; }
.info .top b { font-size: 16px; font-weight: 400; }
.info .top small { font-size: 12.5px; }
.info .heart { transition: transform 300ms cubic-bezier(.3, 1.6, .5, 1); }
.info .heart.on { transform: scale(1.15); }
.info .heart.on img { filter: invert(52%) sepia(52%) saturate(900%) hue-rotate(305deg); }
.prog { display: flex; align-items: center; gap: 20px; font-size: 12.5px; }
.prog > span:first-child { width: 40px; font-variant-numeric: tabular-nums; }
.prog .tr { position: relative; flex: 1; height: 3px; border-radius: 10px; background: rgb(222 222 222 / .8); }
.prog .tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: #424040; }
.prog .tr b { position: absolute; top: -2px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #424040; }
.stats { display: flex; justify-content: space-between; font-size: 12.5px; }
.stats strong { font-weight: 700; margin-left: 8px; }
.plus1 { position: absolute; padding: 12px 14px; border-radius: 20px; background: rgb(255 255 255 / .7); font-size: 12.5px; font-weight: 700; pointer-events: none; animation: plus 1.6s ease-out both; z-index: 3; }
@keyframes plus { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 15% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px); } }
.ctrl { position: absolute; left: 0; right: 0; top: 706px; height: 100px; padding: 20px; display: flex; justify-content: space-between; z-index: 6; }
.ctrl.solid { background: #F3F3F3; }
.ctrl button { width: 60px; height: 60px; border-radius: 18px; transition: scale 160ms; position: relative; }
.ctrl button:active { scale: .92; }
.ctrl .rec { background: #fff; display: grid; place-items: center; }
.ctrl .rec img { transition: transform 200ms; }
.ctrl .rec:active img { transform: scale(.8); }
.hold-tip { position: absolute; left: 50%; top: 540px; translate: -50% 0; z-index: 30; padding: 8px 14px; border-radius: 20px; background: rgb(66 64 64 / .85); color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none; animation: rise 400ms both; }

/* Camera and photo editing */
.camera { background: #222; }
.camera > img.ph { position: absolute; left: -34.5px; top: -17.2px; width: 482.2px; height: 723.3px; object-fit: cover; transition: filter 300ms; }
.camera .pill { position: absolute; left: 10px; right: 10px; top: 658px; padding: 10px 20px; border-radius: 20px; background: #fff; display: flex; justify-content: space-between; font-size: 12.5px; z-index: 5; }
.camera .pill strong { font-weight: 700; margin-left: 8px; }
.camera .flash { position: absolute; inset: 0; background: #fff; z-index: 9; animation: flash 500ms ease-out both; pointer-events: none; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
.joke { position: absolute; left: 70px; top: 503px; width: 367px; padding: 20px; border-radius: 10px; background: #fff; transform: rotate(-12deg); transform-origin: 0 100%; font-family: 'Comic Sans MS', 'Comic Neue', cursive; font-weight: 700; font-size: 14px; line-height: 1.6; text-align: center; z-index: 4; transition: opacity 300ms, transform 400ms cubic-bezier(.3, 1.4, .5, 1); touch-action: none; cursor: grab; }
.joke.hide { opacity: 0; transform: rotate(-20deg) scale(.6); pointer-events: none; }
.edit { position: absolute; left: 0; right: 0; top: 806px; height: 90px; padding: 10px 20px 20px; background: #F3F3F3; display: flex; justify-content: space-between; z-index: 6; }
.edit button { position: relative; width: 60px; height: 60px; border-radius: 18px; transition: scale 160ms; }
.edit button:active { scale: .92; }
.edit button.on::after { content: ""; position: absolute; inset: -1px; border-radius: 18px; box-shadow: 0 0 0 1px #B2CAF0, 0 0 10px rgb(77 128 255 / .45); }
.fts { position: absolute; left: 0; right: 0; top: 806px; height: 90px; padding: 10px 20px 20px; background: #F3F3F3; display: flex; gap: 10px; z-index: 6; overflow-x: auto; scrollbar-width: none; }
.fts::-webkit-scrollbar { display: none; }
.fts .row { display: flex; gap: 15px; }
.fts button { position: relative; flex: none; width: 60px; height: 60px; border-radius: 18px; overflow: hidden; transition: scale 160ms; }
.fts button img.t { width: 60px; height: 60px; object-fit: cover; }
.fts button.on { box-shadow: 0 0 0 1px #b2caf0, 0 0 10px rgb(77 128 255 / .68); }
.fts button.on::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .6) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M6 12.5l4 4 8-9%27 fill=%27none%27 stroke=%27white%27 stroke-width=%272.4%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / 24px no-repeat; }
.strength { position: absolute; left: 20px; right: 20px; top: 640px; height: 46px; padding: 0 20px; border-radius: 20px; background: rgb(255 255 255 / .9); backdrop-filter: blur(8px); display: flex; align-items: center; gap: 20px; font-size: 16px; z-index: 6; }
.strength .tr { position: relative; flex: 1; height: 3px; border-radius: 10px; background: rgb(222 222 222 / .8); touch-action: none; cursor: pointer; }
.strength .tr::before { content: ""; position: absolute; inset: -14px 0; }
.strength .tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: #424040; }
.strength .tr b { position: absolute; top: -5.5px; width: 16px; height: 14px; margin-left: -8px; border-radius: 10px; background: #424040; }

/* Sheet */
.veil { position: absolute; inset: 0; z-index: 20; background: rgb(0 0 0 / .08); animation: in-f 200ms both; }
.veil.out { animation: out-f 200ms both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: #fff; border-radius: 20px 20px 20px 20px; padding: 20px; display: flex; flex-direction: column; gap: 15px; box-shadow: 0 -10px 30px rgb(0 0 0 / .15); animation: up 380ms cubic-bezier(.2, 1, .3, 1) both; }
.sheet.out { animation: down 240ms cubic-bezier(.5, 0, .7, .4) both; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
.sheet .handle { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #424040; margin-bottom: 15px; }
.sheet h3 { margin: 0 0 20px; text-align: center; font-size: 19.5px; font-weight: 400; }
.sheet .opt { height: 54px; border-radius: 12px; background: rgb(222 222 222 / .6); text-align: center; font-size: 16px; transition: background 200ms, scale 160ms; }
.sheet .opt:active { scale: .98; background: rgb(210 210 210 / .8); }

/* Lists: resources, statistics, notifications, level */
.list { position: absolute; left: 20px; right: 20px; top: 151px; bottom: 120px; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 15px; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); padding-bottom: 60px; }
.list.sub { top: 205px; bottom: 90px; }
.list::-webkit-scrollbar { display: none; }
.lrow { flex: none; display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 16px; background: rgb(255 255 255 / .6); text-align: left; font-size: 16px; transition: scale 160ms; animation: rise 360ms both; }
.lrow:active { scale: .98; }
.lrow > img { flex: none; margin: -5px 0; }
.lrow span { flex: 1; }
.lrow small { font-size: 12.5px; display: flex; align-items: center; gap: 10px; }
.lrow small i { width: 5px; height: 5px; border-radius: 50%; background: #424040; }
.lrow.slim { padding: 20px; }
.chart { flex: none; padding: 20px; border-radius: 16px; background: rgb(255 255 255 / .6); display: flex; flex-direction: column; gap: 20px; animation: rise 360ms both; }
.chart .h { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.chart .h small { font-size: 12.5px; }
.chart .g { position: relative; height: 80px; overflow: hidden; }
.chart .g img { position: absolute; left: 0; top: 0; width: 334px; }
.chart .g .reveal { position: absolute; inset: 0; background: rgb(255 255 255 / .0); animation: reveal 1.2s cubic-bezier(.4, 0, .2, 1) both; }
.chart .g.clip { clip-path: inset(0 100% 0 0); animation: wipe 1.2s cubic-bezier(.4, 0, .2, 1) 200ms forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.chart .waves { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.chart .waves img { position: static; width: 360px; animation: wave 3s ease-in-out infinite alternate; }
.chart .waves img.flip { transform: scaleY(-1); animation-name: wave2; }
@keyframes wave { to { transform: scaleY(1.25) translateX(-10px); } }
@keyframes wave2 { to { transform: scaleY(-1.25) translateX(-10px); } }
.chart .streak { display: flex; align-items: center; gap: 2px; height: auto; }
.chart .streak img { animation: rise 300ms both; }
.chart .streak span { margin-left: 6px; font-size: 12px; font-weight: 600; }
.plusb { position: absolute; right: 20px; top: 132px; width: 60px; height: 60px; border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgb(162 161 161 / .25); display: grid; place-items: center; z-index: 5; transition: scale 160ms, opacity 200ms; }
.plusb:active { scale: .92; }
.plusb.hide { opacity: 0; pointer-events: none; }

/* Reminder sheet: drag the hand round the dial */
.rem { gap: 15px; }
.rem .time { display: flex; align-items: center; gap: 70px; padding: 0 0 0 30px; }
.rem .time b { font-size: 61.5px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rem .time b em { font-style: normal; color: #cfcfcf; }
.rem .ampm { display: flex; flex-direction: column; gap: 14px; }
.rem .ampm button { font-size: 17.5px; font-weight: 700; color: #cfcfcf; transition: color 200ms; }
.rem .ampm button.on { color: #424040; }
.dial { position: relative; align-self: center; width: 314px; height: 314px; border-radius: 50%; background: #F3F3F3; touch-action: none; cursor: pointer; }
.dial button { position: absolute; width: 45px; height: 45px; margin: -22.5px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 21px; transition: background 200ms, color 200ms, scale 200ms; }
.dial button.on { background: #424040; color: #fff; scale: 1.05; }
.dial .hand { position: absolute; left: 157px; top: 157px; width: 2px; height: 112px; margin-left: -1px; background: #424040; transform-origin: 50% 0; transition: transform 300ms cubic-bezier(.3, 1.3, .5, 1); pointer-events: none; }
.dial.drag .hand { transition: none; }
.dial .dot { position: absolute; left: 157px; top: 157px; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #424040; pointer-events: none; }
.rem textarea { height: 90px; border: 1px solid #e3e3e3; border-radius: 10px; padding: 15px 18px; font-size: 12.5px; resize: none; }
.rem textarea::placeholder { color: #424040; }
.rem .foot { display: flex; justify-content: space-between; font-size: 16px; }
.rem .foot button { padding: 10px 0; }

/* Level */
.level { position: absolute; left: 50px; top: 151px; width: 314px; height: 314px; }
.level svg { position: absolute; inset: 0; }
.level .arc { transition: stroke-dashoffset 1.6s cubic-bezier(.3, .9, .3, 1); }
.level .tx { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; gap: 6px; }
.level .tx span { font-size: 19.5px; }
.level .tx b { font-size: 61.5px; font-weight: 300; line-height: 1; margin-bottom: 26px; }
.level .tx small { font-size: 19.5px; font-weight: 300; }

.toast { position: absolute; left: 50%; top: 48px; z-index: 50; max-width: 360px; padding: 12px 18px; border-radius: 16px; background: #424040; color: #fff; font-size: 12.5px; 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; }
  .bgl img, .lotus .fbox, .lotus .glow, .lotus .sp, .lotus .fl .petals, .bubbles button, .chart .waves img { animation: none !important; }
}

/* Bloom level: sprites thin out as the flower closes, closing is a soft fold */
.lotus .sprites { position: absolute; inset: 0; opacity: var(--life, .25); transition: opacity 400ms; pointer-events: none; }
.lotus .glow { opacity: var(--life, .25); }
.lotus.pop .fbox { animation: bloom 420ms cubic-bezier(.3, 1.6, .5, 1), sway 5.5s ease-in-out 420ms infinite; }
.lotus.fold .fbox { animation: fold 360ms ease, sway 5.5s ease-in-out 360ms infinite; }
@keyframes fold { 40% { transform: scale(.94, .97); } 100% { transform: none; } }

/* Labelled buttons and tools on the photo pages */
.ctrl .lab { display: grid; place-items: center; }
.ctrl .lab em, .edit .tool em, .fts em { font-style: normal; font-size: 10px; font-weight: 400; color: #424040; }
.ctrl .lab em { position: absolute; left: 0; right: 0; bottom: -15px; text-align: center; }
.edit .tool { background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.edit .tool svg { transition: transform 200ms; }
.edit .tool:active svg { transform: scale(.85); }
.edit .tool.on { box-shadow: 0 0 0 1px #B2CAF0, 0 0 10px rgb(77 128 255 / .45); }
.edit .tool.on::after { display: none; }
.fts button em { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0 3px; background: rgb(0 0 0 / .45); color: #fff; text-align: center; font-size: 9.5px; z-index: 1; }
.fts button.on::after { background-position: center 40%; }
.strength { transition: opacity 200ms; }
.strength.off { opacity: .35; pointer-events: none; }

/* No long-press save image or text selection on the hold-to-smile surfaces */
.app, .app img { -webkit-touch-callout: none; -webkit-user-drag: none; }
.card > img.ph, .camera > img.ph { pointer-events: none; }
.lotus.under { opacity: 0; pointer-events: none; transition: opacity 180ms; }
.camera { touch-action: none; }

/* White wisps: soft glowing streaks circling the lotus, passing behind it and over it */
.lotus .fbox { z-index: 2; }
.lotus .wisp { position: absolute; left: 0; top: 0; width: 26px; height: 6px; margin: -3px 0 0 -13px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(closest-side, #fff 35%, rgb(255 255 255 / .75) 60%, rgb(255 255 255 / 0)); filter: blur(1.2px) drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px rgb(255 255 255 / .9)); will-change: transform, opacity; }
